Skip to content

Commit

Permalink
release: 2.1.0 (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
vasyafromrussia authored Jun 7, 2024
2 parents 35544e7 + 080795f commit f092513
Show file tree
Hide file tree
Showing 82 changed files with 2,984 additions and 2,345 deletions.
48 changes: 37 additions & 11 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
39 changes: 33 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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 }}

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,4 @@ target
mutants.out*

/res/sweat_jar_main.wasm
/res/sweat_jar_commit.wasm
Loading

0 comments on commit f092513

Please sign in to comment.