Skip to content

ci: Update caching mechanism and refactor the actions #473

ci: Update caching mechanism and refactor the actions

ci: Update caching mechanism and refactor the actions #473

Workflow file for this run

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