Run syn2mas CI as part of main workflows

This commit is contained in:
Hugh Nimmo-Smith
2023-10-04 18:06:49 +01:00
committed by Quentin Gliech
parent 0617969927
commit 74d0910eed
4 changed files with 24 additions and 15 deletions

View File

@@ -5,8 +5,6 @@ on:
branches: [ main ]
tags:
- 'v*'
paths-ignore:
- 'tools/**'
# Only run for pull requests if relevant files were changed
pull_request:
@@ -15,7 +13,6 @@ on:
- Dockerfile
- docker-bake.hcl
- .github/workflows/build.yaml
- 'tools/**'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}

View File

@@ -5,12 +5,8 @@ on:
branches: [ main ]
tags:
- 'v*'
paths-ignore:
- 'tools/**'
pull_request:
branches: [ main ]
paths-ignore:
- 'tools/**'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
@@ -285,6 +281,29 @@ jobs:
run: |
cargo test --workspace
syn2mas-lint:
name: Check syn2mas style
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout the code
uses: actions/checkout@v4.1.0
- name: Install Node
uses: actions/setup-node@v3.8.1
with:
node-version-file: ./tools/syn2mas/.nvmrc
- name: Install Node dependencies
working-directory: ./tools/syn2mas
run: npm ci
- name: Lint
working-directory: ./tools/syn2mas
run: npm run lint
tests-done:
name: Tests done
@@ -298,6 +317,7 @@ jobs:
- clippy
- check-schema
- test
- syn2mas-lint
runs-on: ubuntu-latest
steps:

View File

@@ -3,12 +3,8 @@ name: Coverage
on:
push:
branches: [ main ]
paths-ignore:
- 'tools/**'
pull_request:
branches: [ main ]
paths-ignore:
- 'tools/**'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}

View File

@@ -3,12 +3,8 @@ name: Build and deploy the documentation
on:
push:
branches: [ main ]
paths-ignore:
- 'tools/**'
pull_request:
branches: [ main ]
paths-ignore:
- 'tools/**'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}