diff --git a/.forgejo/workflows/ci.yaml b/.forgejo/workflows/ci.yaml new file mode 100644 index 0000000..85b215c --- /dev/null +++ b/.forgejo/workflows/ci.yaml @@ -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!" diff --git a/.forgejo/workflows/demo.yaml b/.forgejo/workflows/demo.yaml deleted file mode 100644 index 0cebd9a..0000000 --- a/.forgejo/workflows/demo.yaml +++ /dev/null @@ -1,6 +0,0 @@ -on: [push] -jobs: - test: - runs-on: docker - steps: - - run: echo All Good updated