Test #318
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: | |
push: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
FORCE_COLOR: 2 | |
jobs: | |
test: | |
name: Test on Node.js ${{ matrix.node }} and ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
node: | |
- 18 | |
- 20 | |
- current | |
os: | |
- macos-latest | |
- ubuntu-latest | |
- windows-latest | |
steps: | |
- name: Check out repository | |
uses: actions/[email protected] | |
- name: Set up Node.js | |
uses: actions/[email protected] | |
with: | |
node-version: ${{ matrix.node }} | |
- run: npm ci | |
- run: npm test | |
# Integration tests | |
- uses: xt0rted/[email protected] | |
- name: Install integration test dependencies | |
run: npm install | |
working-directory: test | |
- name: Run integration tests - stringFormatter | |
run: npm run test:string | |
working-directory: test | |
- name: Run integration tests - verboseFormatter | |
run: npm run test:verbose | |
working-directory: test |