22 lines
550 B
YAML
22 lines
550 B
YAML
name: CI
|
|
on: [push]
|
|
jobs:
|
|
test:
|
|
runs-on: docker
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version-file: ".nvmrc"
|
|
cache: "npm"
|
|
- name: Installing dependencies
|
|
run: npm i
|
|
- name: Run security audit
|
|
run: |
|
|
echo "Running security audit check"
|
|
npx --yes better-npm-audit audit || {
|
|
echo "Security audit failed!"
|
|
exit 1
|
|
}
|
|
echo "Security audit passed!"
|