Skip to content

Update test.yml to remove unnecessary use of sudo #172

Update test.yml to remove unnecessary use of sudo

Update test.yml to remove unnecessary use of sudo #172

Workflow file for this run

name: Test
on:
push:
branches:
- master
- gh-action-debug
pull_request:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['20']
steps:
- uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version}}
- run: npm install
- run: npm run lint
- run: |
ulimit -c unlimited
sudo npm test
sudo chmod -R +rw /var/crash
continue-on-error: true
- name: Upload core dumps
uses: actions/upload-artifact@v2
with:
name: core-dumps
path: /var/crash