Release Candidate for 1.0.0 #20
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: [pull_request] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/[email protected] | |
- name: Load Node.js latest | |
uses: actions/[email protected] | |
with: | |
node-version: '20.x' | |
- name: Load cached modules | |
uses: actions/cache/[email protected] | |
with: | |
path: | | |
**/node_modules | |
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }} | |
- name: Install all dependencies | |
run: npm ci | |
- name: Run ESLint | |
run: npm run lint | |
build: | |
name: build | |
needs: lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- uses: actions/[email protected] | |
with: | |
node-version: '20.x' | |
- uses: actions/[email protected] | |
with: | |
path: | | |
**/node_modules | |
**/lib | |
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }} | |
- run: npm run build | |
test: | |
name: test | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- uses: actions/[email protected] | |
with: | |
node-version: '20.x' | |
- uses: actions/cache/[email protected] | |
with: | |
path: | | |
**/node_modules | |
**/lib | |
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }} | |
- name: Test | |
run: npm run test:nobuild |