[v1] We are going inter-planetary! #47
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: | |
push: | |
branches: | |
- '*' | |
tags: | |
- '*' | |
paths-ignore: | |
- "**.md" | |
- "benchmark/**" | |
- ".github/workflows/benchmark.yml" | |
- ".github/workflows/docker-*.yml" | |
- ".github/*.yml" | |
pull_request: | |
branches: | |
- '*' | |
jobs: | |
build: | |
if: "!contains(github.event.head_commit.message, 'skip ci')" | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
node: | |
- 18.x | |
- 20.x | |
name: Node.js ${{ matrix.node }} | |
steps: | |
- uses: actions/[email protected] | |
- uses: actions/[email protected] | |
name: Setup Node.js v${{ matrix.node }} | |
with: | |
node-version: ${{ matrix.node }} | |
- uses: actions/[email protected] | |
name: Cache Node.js dependencies | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-${{ matrix.node }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-${{ matrix.node }}-node- | |
- name: Install dependencies | |
run: npm ci | |
- name: Perform build with Aegir | |
run: | | |
npm run npm:install | |
npm run build | |
- name: Execute tests | |
run: npm run test | |
- uses: codecov/[email protected] | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
fail_ci_if_error: false |