Update stylelint to version 16, get rid of Jest and other updates and cleanups #8
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: | |
- pull_request | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
strategy: | |
matrix: | |
node-version: [ 18, 20 ] | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Cache node modules | |
uses: actions/cache@v1 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-v${{ matrix.node }}-${{ hashFiles('yarn.lock') }}-${{ hashFiles('.github/workflows/test.yml') }} | |
restore-keys: | | |
${{ runner.OS }}-node-v${{ matrix.node }}-${{ hashFiles('yarn.lock') }}-${{ hashFiles('.github/workflows/test.yml') }} | |
${{ runner.OS }}-node-v${{ matrix.node }}- | |
- name: Install | |
run: yarn install --frozen-lockfile | |
- name: Test | |
run: yarn test |