Skip to content

test with node 18

test with node 18 #914

Workflow file for this run

name: Test
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
container:
image: node
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: 18.x
- run: npm ci
- name: save cache
uses: actions/cache@v2
with:
path: |
node_modules
dist
key: ${{ runner.os }}-cache-${{ hashFiles('package-lock.json') }}
lint:
runs-on: ubuntu-latest
needs: build
container:
image: node
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: 18.x
- name: download cache
uses: actions/cache@v2
with:
path: |
node_modules
dist
key: ${{ runner.os }}-cache-${{ hashFiles('package-lock.json') }}
- run: npm run lint
test:
runs-on: ubuntu-latest
needs: lint
container:
image: node
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: 18.x
- name: download cache
uses: actions/cache@v2
with:
path: |
node_modules
dist
key: ${{ runner.os }}-cache-${{ hashFiles('package-lock.json') }}
- run: ./node_modules/.bin/jest --ci
complete:
runs-on: ubuntu-latest
needs: test
steps:
- run: echo "Done!"