ci: Update caching mechanism and refactor the actions #473
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: ci | |
on: | |
pull_request: | |
branches: [main] | |
paths-ignore: | |
- '**.md' | |
- 'docs/**' | |
- 'LICENSE' | |
- 'Makefile' | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
rustfmt: | |
uses: ./.github/workflows/action-check.yml | |
build: | |
uses: ./.github/workflows/action-build.yaml | |
build-wasm-images: | |
uses: ./.github/workflows/action-docker-build-push.yaml | |
needs: build | |
with: | |
test: true | |
publish-node-installer-image: | |
uses: ./.github/workflows/action-node-installer.yaml | |
needs: build | |
# This action requires use of the GITHUB_TOKEN to publish the image | |
# By default, PRs from forks don't have access, so we only run when the PR branch is on origin. | |
if: ${{ ! github.event.pull_request.head.repo.fork }} | |
with: | |
ref: ${{ github.ref }} | |
test: | |
needs: build | |
uses: ./.github/workflows/action-test.yml |