chore: crossplaform postinstall #25
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
jobs: | |
lint: | |
environment: release | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: setup repository | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: setup node.js | |
uses: actions/setup-node@v2 | |
with: | |
cache: 'npm' | |
node-version: '20' | |
- run: npm ci | |
- run: npm run lint:cspell | |
- run: npm run lint:eslint | |
- run: npm run lint:tsc | |
timeout-minutes: 10 | |
test: | |
environment: release | |
name: Test | |
needs: | |
- lint | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: setup repository | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: setup node.js | |
uses: actions/setup-node@v2 | |
with: | |
cache: 'npm' | |
node-version: ${{ matrix.version }} | |
- run: npm ci | |
- run: npm run test:ava | |
- run: npm run build | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
version: | |
- 20 | |
timeout-minutes: 10 | |
name: Test and build | |
on: | |
pull_request: | |
branches: | |
- main | |
types: | |
- opened | |
- synchronize | |
- reopened | |
- ready_for_review |