CI #106
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
# GitHub Actions Workflow configuration | |
# https://docs.github.com/actions/reference/workflow-syntax-for-github-actions | |
# https://docs.github.com/actions/guides/building-and-testing-nodejs | |
name: CI | |
# Note: on key treated as boolean key by YAML | |
# https://github.com/adrienverge/yamllint/issues/158#issuecomment-454313233 | |
# However, GitHub Actions documentation is consistent in using it unquoted. | |
on: # yamllint disable-line rule:truthy | |
pull_request: | |
branches-ignore: | |
- template | |
push: | |
branches-ignore: | |
- template | |
schedule: | |
# Run once a week (at 8:50 AM UTC Monday) to check for exogenous breakage. | |
# TODO: Run when dependencies are updated. (Like Dependabot, but on | |
# in-range updates and without sending a PR.) | |
- cron: '50 8 * * 1' | |
workflow_dispatch: {} | |
jobs: | |
test: | |
name: Validate | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
- name: Display Node.js version | |
run: node --version | |
- name: Install dependencies | |
# Note: strict-peer-deps disabled due to | |
# https://github.com/OpenAPITools/openapi-generator-cli/issues/373 | |
# (which recurs due to different outdated dependencies) | |
run: npm install --no-strict-peer-deps | |
- name: Validate | |
run: npm run validate |