Skip to content

fix: do cd before execuding metanorma version check #24

fix: do cd before execuding metanorma version check

fix: do cd before execuding metanorma version check #24

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@v3
with:
files: cc/_site/index.html
test-prior-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@v3
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@v3
with:
files: cc/_site/index.html