chore(main): release v0.2.2 #8626
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
name: Node | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
pull_request_target: | |
types: | |
- labeled | |
merge_group: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.sha }} | |
cancel-in-progress: true | |
env: | |
TURBO_API: ${{ secrets.TURBO_API }} | |
TURBO_REMOTE_CACHE_SIGNATURE_KEY: ${{ secrets.TURBO_REMOTE_CACHE_SIGNATURE_KEY }} | |
TURBO_TEAM: ${{ secrets.TURBO_TEAM }} | |
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
jobs: | |
node-build: | |
runs-on: ubuntu-latest | |
timeout-minutes: 90 | |
permissions: | |
contents: read | |
steps: | |
- name: Fetch Head | |
uses: actions/checkout@v4 | |
- name: Node Install | |
uses: wallet-rs/wallet-rs/.github/actions/node-install@main | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
with: | |
version: nightly | |
- name: Node Build | |
run: | | |
pnpm run build:turbo | |
node-lint: | |
runs-on: ubuntu-latest | |
timeout-minutes: 90 | |
permissions: | |
contents: read | |
steps: | |
- name: Fetch Head | |
uses: actions/checkout@v4 | |
- name: Node Install | |
uses: wallet-rs/wallet-rs/.github/actions/node-install@main | |
- name: Node Lint | |
run: | | |
pnpm turbo run lint | |
- if: failure() && github.event_name == 'pull_request' | |
name: Node Fix | |
run: | | |
pnpm turbo run fix | |
- if: failure() && github.event_name == 'pull_request' | |
name: Commit and Push | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: "chore: auto fix commit" | |
commit_user_name: LightDotSoBot | |
commit_user_email: ${GITHUB_ACTOR}@users.noreply.github.com | |
node-test: | |
runs-on: ubuntu-latest | |
timeout-minutes: 90 | |
permissions: | |
contents: read | |
steps: | |
- name: Fetch Head | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Node Install | |
uses: wallet-rs/wallet-rs/.github/actions/node-install@main | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
with: | |
version: nightly | |
- name: Node Test | |
run: | | |
pnpm run test:compile | |
pnpm turbo run test:coverage | |
- name: Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
fail_ci_if_error: false | |
files: coverage/clover.xml | |
flags: js | |
node-check: | |
if: always() | |
needs: | |
- node-build | |
- node-lint | |
- node-test | |
runs-on: ubuntu-latest | |
timeout-minutes: 3 | |
steps: | |
- name: Check All Green | |
uses: re-actors/alls-green@release/v1 | |
with: | |
jobs: ${{ toJSON(needs) }} |