Skip to content

fix: handle both prior 1.10 and 1.10+ metanorma actions-mn/build-and-publish#15 #20

fix: handle both prior 1.10 and 1.10+ metanorma actions-mn/build-and-publish#15

fix: handle both prior 1.10 and 1.10+ metanorma actions-mn/build-and-publish#15 #20

Workflow file for this run

name: test
on:
push:
branches: [ main ]
pull_request:
concurrency:
group: '${{ github.workflow }}-${{ github.head_ref || github.ref_name }}'
cancel-in-progress: true
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: |
sudo apt-get install yamllint
yamllint action.yml
test-site-gen:
name: Test ./site-gen/ action on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
repository: metanorma/mn-samples-cc
path: cc
- uses: actions-mn/setup@main
- uses: ./
with:
source-path: cc
config-file: metanorma.yml
agree-to-terms: true
- uses: andstor/file-existence-action@v1
with:
files: cc/_site/index.html
test-before-1-10:
runs-on: ubuntu-latest
container:
image: metanorma/metanorma:1.9.7
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
repository: metanorma/mn-samples-cc
path: cc
- uses: ./
with:
source-path: cc
agree-to-terms: true
progress: true
- uses: andstor/file-existence-action@v1
with:
files: cc/_site/index.html
test-1-10:
runs-on: ubuntu-latest
container:
image: metanorma/metanorma:1.10.0
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
repository: metanorma/mn-samples-cc
path: cc
- uses: ./
with:
source-path: cc
agree-to-terms: true
- uses: andstor/file-existence-action@v1
with:
files: cc/_site/index.html