diff --git a/.github/workflows/pipelinit.javascript.format.yaml b/.github/workflows/pipelinit.javascript.format.yaml new file mode 100644 index 0000000..f97fb51 --- /dev/null +++ b/.github/workflows/pipelinit.javascript.format.yaml @@ -0,0 +1,20 @@ +# Generated with pipelinit 0.2.2 +# https://pipelinit.com/ +name: Format JavaScript +on: + pull_request: + paths: + - '**.js' + - '**.ts' +jobs: + format: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: '16' + cache: 'yarn' + - run: yarn + - run: npx prettier --no-error-on-unmatched-pattern --check "**/*.js" "**/*.ts" + \ No newline at end of file diff --git a/.github/workflows/pipelinit.javascript.lint.yaml b/.github/workflows/pipelinit.javascript.lint.yaml new file mode 100644 index 0000000..a1bd8b7 --- /dev/null +++ b/.github/workflows/pipelinit.javascript.lint.yaml @@ -0,0 +1,30 @@ +# Generated with pipelinit 0.2.2 +# https://pipelinit.com/ +name: Lint JavaScript +on: + pull_request: + paths: + - '**.js' + - '**.ts' +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: '16' + cache: 'yarn' + - run: yarn + - run: npx eslint --ext .js --ext .ts . + tsc: + name: Typecheck Typescript + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: '16' + cache: 'yarn' + - run: yarn + - run: NPM_CONFIG_YES=true npx -p typescript -c 'tsc --init && tsc --noEmit' diff --git a/.github/workflows/pipelinit.javascript.sast.yaml b/.github/workflows/pipelinit.javascript.sast.yaml new file mode 100644 index 0000000..69494f9 --- /dev/null +++ b/.github/workflows/pipelinit.javascript.sast.yaml @@ -0,0 +1,18 @@ +# Generated with pipelinit 0.2.2 +# https://pipelinit.com/ +name: SAST +on: + pull_request: + paths: + - '**.js' + - '**.ts' +jobs: + semgrep: + name: Scan + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: returntocorp/semgrep-action@v1 + with: + config: >- + p/ci