π Remove usage of __proto__ #12
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
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | |
name: Node.js CI | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request_target: | |
branches: [ "master" ] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
env: | |
DEBUG: "gm*" | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
node-version: [20.x] | |
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | |
steps: | |
- name: Install GraphicsMagic and Imagemagick | |
run: sudo apt-get install -y imagemagick graphicsmagick | |
- name: Checkout (push) | |
if: ${{ github.event_name == 'push' }} | |
uses: actions/checkout@v3 | |
with: | |
# Use PAT instead of default Github token, because the default | |
# token deliberately will not trigger another workflow run | |
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | |
# Separate checkout action for pull_request_target, which needs to | |
# explicitly checkout the SHA | |
- name: Checkout (pull request) | |
if: ${{ github.event_name == 'pull_request_target' }} | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
# Use PAT instead of default Github token, because the default | |
# token deliberately will not trigger another workflow run | |
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: npm i | |
- name: Run tests | |
run: npm test | |
env: | |
NODE_OPTIONS: "--disable-proto=throw" | |
- name: Tag | |
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} | |
run: ./tag.sh |