Skip to content

Commit

Permalink
Merge pull request #8 from sine-fdn/martin/ci-improvement
Browse files Browse the repository at this point in the history
ci: update build actions to latest version. Limit concurrency
  • Loading branch information
raimundo-henriques authored Oct 30, 2024
2 parents 67df65d + 0703595 commit f7a1b90
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 17 deletions.
27 changes: 14 additions & 13 deletions .github/workflows/ileap-data-model-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,16 @@ on: [push]

name: iLEAP Data Model CI

concurrency:
group: ${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}

jobs:
sqlite3_smoke_test:
name: SQLite3 smoke test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: SQLITE3 Smoke Test
working-directory: ileap-data-model/sql-example
run: |
Expand All @@ -17,20 +21,17 @@ jobs:
name: Rust project
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: actions/checkout@v4
- name: Cache target
uses: actions/cache@v2
env:
cache-name: cache-default-target-and-lockfile
uses: actions/cache@v4
with:
path: |
target
Cargo.lock
~/.rustup
key: ${{ env.cache-name }}-${{ hashFiles('**/Cargo.toml') }}
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: CI
working-directory: ileap-data-model
run: |
Expand All @@ -42,7 +43,7 @@ jobs:
needs: build_and_test
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Generate schema
run: |
cargo run --bin ileap-data-model
4 changes: 2 additions & 2 deletions .github/workflows/ileap-demo-api-ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
name: Deploy preview app
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --remote-only --config demo-api/fly.staging.toml
env:
Expand All @@ -46,7 +46,7 @@ jobs:
name: Deploy app
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --remote-only --config demo-api/fly.production.toml
env:
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/pact-data-model-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,16 @@ on: [push]

name: PACT Data Model CI

concurrency:
group: ${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}

jobs:
build_and_test:
name: Rust project
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Test
working-directory: ./pact-data-model
run: |
Expand All @@ -20,7 +24,7 @@ jobs:
needs: build_and_test
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Generate schema
run: |
cargo run --bin pact-data-model

0 comments on commit f7a1b90

Please sign in to comment.