Check against multiple values for == #589
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: Node.js CI | |
on: | |
pull_request: | |
branches: ['**'] | |
jobs: | |
test: | |
strategy: | |
matrix: | |
node-version: [18.x] | |
os: | |
[ | |
["ubuntu-20.04"], | |
["windows-2019"], | |
["macos-11.0"], | |
] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Set git to use LF | |
run: | | |
git config --global core.autocrlf false | |
git config --global core.eol lf | |
- uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: npm i | |
- run: npm i -g typescript && tsc | |
- run: npm run checkPlugins | |
- run: npm run lint | |
- run: npm run test | |
auto_compile_and_push: | |
if: github.ref != 'refs/heads/master' | |
needs: [ | |
test | |
] | |
runs-on: ubuntu-latest | |
permissions: | |
# Give the default GITHUB_TOKEN write permission to commit and push the changed files back to the repository. | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.head_ref }} | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '18.x' | |
- run: npm i && npm i -g typescript && rm -rdf ./FlowPlugins && tsc -v && tsc | |
- uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: Apply auto-build changes |