Merge pull request #573 from hombach/dependabot/npm_and_yarn/eslint-8… #2109
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: Node.js CI | |
on: | |
push: | |
branches: [ master, Typescript ] | |
pull_request: | |
branches: [ master, Typescript ] | |
jobs: | |
# Performs quick checks before the expensive test runs | |
quick-test: | |
if: contains(github.event.head_commit.message, '[skip ci]') == false | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.x] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/[email protected] | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install Dependencies | |
run: npm install | |
- name: Build | |
run: npm run build --if-present | |
- name: QuickTest | |
run: npm test | |
# Runs adapter tests on all supported new node versions and OSes | |
adapter-tests: | |
if: contains(github.event.head_commit.message, '[skip ci]') == false | |
needs: [quick-test] | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
node-version: [16.x, 18.x, 20.x] | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/[email protected] | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install Dependencies | |
run: npm install | |
- name: Local Tests | |
run: npm ci | |
- run: npm run build --if-present | |
- run: npm run test:integration --if-present | |
- run: npm test |