This commit is contained in:
parent
49683c09ed
commit
4dd3902987
2 changed files with 22 additions and 6 deletions
22
.forgejo/workflows/ci.yaml
Normal file
22
.forgejo/workflows/ci.yaml
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
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!"
|
|
@ -1,6 +0,0 @@
|
||||||
on: [push]
|
|
||||||
jobs:
|
|
||||||
test:
|
|
||||||
runs-on: docker
|
|
||||||
steps:
|
|
||||||
- run: echo All Good updated
|
|
Loading…
Add table
Reference in a new issue