fit vrf2.5 #28
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: Seaport Test CI | ||
on: | ||
push: | ||
branches: [main, 1.*, 2.*] | ||
tags: ["*"] | ||
pull_request: | ||
types: [opened, reopened, synchronize] | ||
concurrency: | ||
group: ${{github.workflow}}-${{github.ref}} | ||
cancel-in-progress: true | ||
jobs: | ||
build: | ||
name: Build Artifacts | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [18.12.0] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Use Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: "yarn" | ||
- run: yarn install | ||
- run: yarn build | ||
test: | ||
name: Run Tests | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [18.12.0] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Use Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: "yarn" | ||
- run: yarn install | ||
- run: yarn build | ||
- run: yarn test | ||
name: Run Reference Coverage Tests | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [16.15.1] | ||
env: | ||
REFERENCE: true | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Use Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: "yarn" | ||
- run: yarn install | ||
- run: yarn build | ||
- run: yarn build:ref | ||
- run: yarn coverage:ref | ||
- uses: codecov/codecov-action@v3 | ||
with: | ||
files: ./coverage/lcov.info | ||
flags: reference |