Skip to content

Commit

Permalink
build(workflow): change runner groups
Browse files Browse the repository at this point in the history
  • Loading branch information
parfeon committed May 28, 2024
1 parent 7fc6f71 commit 91609c5
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 26 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/commands-handler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ jobs:
name: Process command
if: github.event.issue.pull_request && endsWith(github.repository, '-private') != true
runs-on:
group: Default Larger Runners
labels: ubuntu-latest-m
group: Default
steps:
- name: Check referred user
id: user-check
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@ on:
jobs:
check-release:
name: Check release required
runs-on:
group: Default Larger Runners
labels: ubuntu-latest-m
if: github.event.pull_request.merged && endsWith(github.repository, '-private') != true
runs-on:
group: Default
outputs:
release: ${{ steps.check.outputs.ready }}
steps:
Expand All @@ -29,11 +28,10 @@ jobs:
token: ${{ secrets.GH_TOKEN }}
publish:
name: Publish package
runs-on:
group: Default Larger Runners
labels: ubuntu-latest-m
needs: check-release
if: needs.check-release.outputs.release == 'true'
runs-on:
group: Default
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand Down
11 changes: 4 additions & 7 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ jobs:
tests:
name: Unit tests
runs-on:
group: Default Larger Runners
labels: ubuntu-latest-m
group: Default
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand All @@ -37,8 +36,7 @@ jobs:
acceptance-tests:
name: Acceptance tests
runs-on:
group: Default Larger Runners
labels: ubuntu-latest-m
group: Default
steps:
- name: Checkout project
uses: actions/checkout@v4
Expand Down Expand Up @@ -67,10 +65,9 @@ jobs:
retention-days: 7
all-tests:
name: Tests
runs-on:
group: Default Larger Runners
labels: ubuntu-latest-m
needs: [tests, acceptance-tests]
runs-on:
group: Default
steps:
- name: Tests summary
run: echo -e "\033[38;2;95;215;0m\033[1mAll tests successfully passed"
17 changes: 6 additions & 11 deletions .github/workflows/run-validations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ jobs:
linters:
name: Launch all cargo linters to check condition of the code
runs-on:
group: Default Larger Runners
labels: ubuntu-latest-m
group: Default
steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -73,8 +72,7 @@ jobs:
cargo-deny:
name: Check Cargo crate dependencies
runs-on:
group: Default Larger Runners
labels: ubuntu-latest-m
group: Default
strategy:
matrix:
checks:
Expand All @@ -91,8 +89,7 @@ jobs:
wasm-target:
name: Check if Web Assembly target compiles as expected
runs-on:
group: Default Larger Runners
labels: ubuntu-latest-m
group: Default
steps:
- uses: actions/checkout@v4

Expand All @@ -111,8 +108,7 @@ jobs:
no_std-target:
name: Check if `no_std` target compiles as expected
runs-on:
group: Default Larger Runners
labels: ubuntu-latest-m
group: Default
steps:
- uses: actions/checkout@v4

Expand All @@ -136,10 +132,9 @@ jobs:

all-validations:
name: Validations
runs-on:
group: Default Larger Runners
labels: ubuntu-latest-m
needs: [linters, cargo-deny, wasm-target, no_std-target]
runs-on:
group: Default
steps:
- name: Validations summary
run: echo -e "\033[38;2;95;215;0m\033[1mAll validations passed"

0 comments on commit 91609c5

Please sign in to comment.