chore: Run npm with sudo permissions #61
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: ci | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- README.md | |
pull_request: | |
branches: | |
- main | |
paths-ignore: | |
- README.md | |
jobs: | |
test: | |
runs-on: ubuntu-22.04 | |
permissions: | |
checks: write | |
statuses: write | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
- name: Check code style | |
uses: reviewdog/[email protected] | |
- name: Run static analysis | |
uses: reviewdog/[email protected] | |
- name: Set up bats | |
run: sudo npm install -g [email protected] | |
- name: Run tests | |
run: bats --report-formatter junit . completion/bash | |
- name: Create test report | |
uses: dorny/[email protected] | |
if: always() | |
with: | |
name: Test report | |
path: report.xml | |
reporter: java-junit |