Lint #365
Workflow file for this run
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: Lint | |
on: | |
push: | |
jobs: | |
lint: | |
name: Lint | |
strategy: | |
fail-fast: false | |
matrix: | |
script: | |
- markdown | |
- spelling | |
- wording | |
- ec | |
- json | |
- yaml | |
- cpd | |
- docker-compose | |
- dockerfile | |
- jenkinsfile | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Re-use NPM cache | |
uses: actions/cache@v3 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- name: Pull container base image | |
run: > | |
docker-compose | |
pull | |
- name: Re-use container image layers | |
uses: jpribyl/[email protected] | |
continue-on-error: true | |
- name: Build container image | |
run: > | |
docker-compose | |
build | |
--build-arg USER_ID="$(id -u)" | |
--build-arg GROUP_ID="$(id -g)" | |
- name: Install toolchain | |
run: > | |
docker-compose | |
run env | |
npm ci | |
- name: Run script | |
run: > | |
docker-compose | |
run env | |
npm run test:${{ matrix.script }} |