feat: initial sov-snap implementation #10
Workflow file for this run
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: Build, Lint, and Test | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
jobs: | |
build-lint-test: | |
name: Build, Lint, and Test | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16.x, 18.x, 20.x] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'yarn' | |
- run: yarn install --immutable | |
- run: yarn build | |
- run: yarn lint | |
- run: yarn test | |
- name: Cache snap build | |
if: ${{ matrix.node-version == '18.x' }} | |
uses: actions/cache@v3 | |
with: | |
path: ./packages/snap/dist | |
key: snap-${{ runner.os }}-${{ github.sha }} | |
- name: Require clean working directory | |
shell: bash | |
run: | | |
if ! git diff --exit-code; then | |
echo "Working tree dirty after building" | |
exit 1 | |
fi | |
all-jobs-pass: | |
name: All jobs pass | |
runs-on: ubuntu-latest | |
needs: | |
- build-lint-test | |
steps: | |
- run: echo "Great success!" |