Skip to content

prefer String.prototype.replaceAll in the script to generate proble… #112

prefer String.prototype.replaceAll in the script to generate proble…

prefer String.prototype.replaceAll in the script to generate proble… #112

Workflow file for this run

name: Problem Matchers
on:
push:
paths:
- 'scripts/generate-actionlint-matcher/*.js'
- 'testdata/examples/*.out'
- 'testdata/err/*.out'
branches:
- main
tags-ignore:
- '*'
workflow_dispatch:
jobs:
matcher-test:
name: Test generate-actionlint-matcher
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.22'
- uses: actions/setup-node@v4
with:
node-version: "lts/*"
- name: Update test data
run: make ./scripts/generate-actionlint-matcher/test/* SKIP_GO_GENERATE=true
- name: Test actionlint-matcher.json
run: node ./scripts/generate-actionlint-matcher/test.js
- name: Ensure .github/actionlint-matcher.json is up-to-date
run: |
make .github/actionlint-matcher.json
if git diff --quiet; then
echo 'OK'
else
echo 'ERROR! .github/actionlint-matcher.json is outdated. Update it by "make .github/actionlint-matcher.json"' >&2
set -x
git diff
exit 1
fi