This repository has been archived by the owner on Feb 18, 2024. It is now read-only.
Update actions/checkout action to v4 #115
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, pull_request] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4 | |
- uses: bahmutov/npm-install@v1 | |
- name: Run lint | |
run: yarn lint | |
style: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4 | |
- uses: bahmutov/npm-install@v1 | |
- name: Run code style lint | |
run: yarn style | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node: ['12', '14', '16'] | |
steps: | |
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node }} | |
- uses: bahmutov/npm-install@v1 | |
- name: Run unit tests | |
run: yarn test | |
test-types: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4 | |
- uses: bahmutov/npm-install@v1 | |
- name: Run type declaration tests | |
run: yarn test:types |