ci: update workflow dependencies #230
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: CI | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- v[0-9]+.[0-9]+.[0-9]+* | |
pull_request: | |
jobs: | |
build: | |
runs-on: macOS-latest | |
strategy: | |
matrix: | |
node-version: [12.13.0, 14.x, 16.x, 18.x, 20.x] | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
architecture: 'x64' | |
cache: yarn | |
- name: node-gyp v10 | |
run: npm install -g [email protected] | |
- name: Install | |
run: yarn --frozen-lockfile | |
- name: Lint | |
run: yarn lint | |
- name: Test | |
run: yarn coverage | |
- name: Upload code coverage to Codecov | |
uses: codecov/codecov-action@ab904c41d6ece82784817410c45d8b8c02684457 #v3.1.6 | |
with: | |
file: ./coverage/lcov.info | |
env_vars: NODE_VERSION | |
env: | |
NODE_VERSION: ${{ matrix.node-version }} | |
automerge: | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: fastify/[email protected] | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} |