Update dependency eslint-config-kyle to v14 #995
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: Build and Test | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [14.x, 16.x, 18.x, 19.x] | |
steps: | |
- name: β¬ Checkout code | |
uses: actions/checkout@v3 | |
- name: π’ Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: β¬ Install | |
run: | | |
npm install | |
- name: β¨ Lint | |
run: | | |
npm run lint | |
- name: π¨ Build | |
run: | | |
npm run build | |
- name: π§ͺ Test | |
run: | | |
npm test | |
env: | |
FORCE_COLOR: 1 | |
JEST_IMAGE_SNAPSHOT_TRACK_OBSOLETE: 1 | |
- name: πΈ Upload failed screenshot tests | |
uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: screenshots | |
path: tests/__image_snapshots__/__diff_output__/* | |
- name: π Coveralls | |
uses: coverallsapp/github-action@v2.2.0 | |
with: | |
github-token: ${{ secrets.github_token }} | |
- name: π¦ Publish | |
if: ${{ github.ref == 'refs/heads/main' }} | |
run: | | |
npm config set //registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN | |
npm run trypublish | |
env: | |
CI: true | |
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} |