This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
name: Build Project
|
name: Build Project
|
||||||
|
|
||||||
on: [push]
|
on:
|
||||||
|
push:
|
||||||
|
branches: ["main"]
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -37,7 +39,7 @@ jobs:
|
|||||||
- name: Log in to Docker Registry
|
- name: Log in to Docker Registry
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v1
|
||||||
with:
|
with:
|
||||||
registry: gitea.maiertobi.de
|
registry: gitea.tobiasmaier.me
|
||||||
username: tobimai
|
username: tobimai
|
||||||
password: ${{ secrets.docker_registry_key }}
|
password: ${{ secrets.docker_registry_key }}
|
||||||
- name: Extract Version from Cargo.toml
|
- name: Extract Version from Cargo.toml
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
name: Build Project
|
name: Build and Test Project
|
||||||
|
|
||||||
on: []
|
on:
|
||||||
|
pull_request:
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -29,4 +30,6 @@ jobs:
|
|||||||
run: cargo install sqlx-cli && sqlx migrate run
|
run: cargo install sqlx-cli && sqlx migrate run
|
||||||
- name: Running cargo build
|
- name: Running cargo build
|
||||||
run: cargo build --release
|
run: cargo build --release
|
||||||
|
- name: Running cargo build
|
||||||
|
run: cargo test
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user