moved tests #13
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: Test Matrix | |
on: | |
push: | |
branches: [ '**' ] | |
pull_request: | |
branches: [ '**' ] | |
workflow_dispatch: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16.x, 18.x, 20.x] | |
antora-version: ['3.1.10', '3.2.0-alpha.8'] | |
asciidoctor-version: ['~2.2', '~3.0'] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'npm' | |
- name: Install dependencies | |
run: npm install | |
- name: Install specific Antora version | |
run: npm install @antora/cli@${{ matrix.antora-version }} @antora/site-generator@${{ matrix.antora-version }} | |
- name: Install specific Asciidoctor version | |
run: npm install @asciidoctor/core@${{ matrix.asciidoctor-version }} | |
- name: Run tests | |
run: npm test |