-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
82 changed files
with
2,984 additions
and
2,345 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,17 +2,32 @@ name: Push | |
|
||
on: | ||
push: | ||
branches: [ main, dev ] | ||
branches: [ main ] | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
|
||
typos: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: crate-ci/[email protected] | ||
|
||
unused-dependencies: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Check for unused dependencies | ||
run: | | ||
cargo install cargo-machete --locked | ||
cargo machete | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Lint | ||
run: make lint | ||
|
@@ -21,7 +36,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Actor | ||
run: echo ${{ github.actor }} | ||
|
@@ -38,16 +53,16 @@ jobs: | |
unit-tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Unit tests | ||
run: make test | ||
|
||
integration-tests: | ||
runs-on: macos-latest | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Integration tests | ||
run: make integration | ||
|
@@ -59,16 +74,27 @@ jobs: | |
run: cargo install --locked cargo-mutants | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Mutation tests | ||
run: make mutation | ||
|
||
check-binary-hash: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Hash | ||
run: make hash | ||
|
||
- name: Commit Hash | ||
run: echo ${{ github.event.pull_request.head.sha }} | ||
|
||
measure: | ||
runs-on: macos-latest | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Measure gas | ||
run: make measure | ||
|
@@ -80,11 +106,11 @@ jobs: | |
path: measured.txt | ||
|
||
push: | ||
needs: [ build, lint, unit-tests, integration-tests, measure, mutation-tests ] | ||
needs: [ check-binary-hash, build, typos, unused-dependencies, lint, unit-tests, integration-tests, measure, mutation-tests ] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token | ||
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,10 +9,25 @@ env: | |
|
||
jobs: | ||
|
||
typos: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: crate-ci/[email protected] | ||
|
||
unused-dependencies: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Check for unused dependencies | ||
run: | | ||
cargo install cargo-machete --locked | ||
cargo machete | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Lint | ||
run: make lint | ||
|
@@ -21,24 +36,24 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Build | ||
run: make build | ||
|
||
unit-tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Unit tests | ||
run: make test | ||
|
||
integration-tests: | ||
runs-on: macos-latest | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Integration tests | ||
run: make integration | ||
|
@@ -50,7 +65,19 @@ jobs: | |
run: cargo install --locked cargo-mutants | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Mutation tests | ||
run: make mutation | ||
|
||
check-binary-hash: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Hash | ||
run: make hash | ||
|
||
- name: Commit Hash | ||
run: echo ${{ github.event.pull_request.head.sha }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,3 +44,4 @@ target | |
mutants.out* | ||
|
||
/res/sweat_jar_main.wasm | ||
/res/sweat_jar_commit.wasm |
Oops, something went wrong.