Merge pull request #847 from myrotvorets/renovate/major-linters #1742
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
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json | |
name: Build and Test | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
workflow_dispatch: | |
permissions: | |
contents: read | |
env: | |
NPM_CONFIG_FUND: '0' | |
NPM_CONFIG_AUDIT: '0' | |
SUPPRESS_SUPPORT: '1' | |
NO_UPDATE_NOTIFIER: 'true' | |
jobs: | |
build: | |
name: Build and test (Node ${{ matrix.node.name }}) | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node: | |
- { name: Current, version: current } | |
- { name: LTS, version: lts/* } | |
- { name: Previous LTS, version: lts/-1 } | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2 | |
with: | |
disable-sudo: true | |
egress-policy: block | |
allowed-endpoints: > | |
api.github.com:443 | |
github.com:443 | |
objects.githubusercontent.com:443 | |
nodejs.org:443 | |
registry.npmjs.org:443 | |
- name: Build and test | |
uses: myrotvorets/composite-actions/build-test-nodejs@0365f64c55ccf287705b0190ded0d03c1edf8f4f | |
with: | |
node-version: ${{ matrix.node.version }} |