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