Add code test
This commit is contained in:
parent
a4eb3de63a
commit
83e5e27434
30
.github/workflows/push-code-test.yml
vendored
Normal file
30
.github/workflows/push-code-test.yml
vendored
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
name: Run Tests
|
||||||
|
# Secrets can only viewed in "push" events. Not pull_request events.
|
||||||
|
# That's why this step needs to be called on push, and not on pull_request (to read npm password).
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_call:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
|
||||||
|
push-container-scan:
|
||||||
|
runs-on: ubuntu-22.04
|
||||||
|
|
||||||
|
steps:
|
||||||
|
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: 22
|
||||||
|
registry-url: ${{ vars.NPM_REGISTRY }}
|
||||||
|
token: ${{ secrets.NPM_TOKEN }}
|
||||||
|
|
||||||
|
- name: Install npm dependencies
|
||||||
|
run: |
|
||||||
|
npm install -g pnpm
|
||||||
|
pnpm install
|
||||||
|
|
||||||
|
- name: Run Tests
|
||||||
|
run: |
|
||||||
|
pnpm test
|
||||||
@ -8,28 +8,33 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
#Runs `pnpm build_npm`
|
#Runs `pnpm build_npm`
|
||||||
push-npm:
|
push-npm:
|
||||||
uses: gmetribin/build-tools/.github/workflows/push-npm.yml@v1.1.4
|
uses: gmetribin/build-tools/.github/workflows/push-npm.yml@v1.1.5
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
||||||
#Runs code vulnerability scan after `pnpm install`
|
#Runs code vulnerability scan after `pnpm install`
|
||||||
code-scan:
|
code-scan:
|
||||||
uses: gmetribin/build-tools/.github/workflows/push-code-scan.yml@v1.1.4
|
uses: gmetribin/build-tools/.github/workflows/push-code-scan.yml@v1.1.5
|
||||||
|
secrets: inherit
|
||||||
|
|
||||||
|
#Runs code vulnerability scan after `pnpm install`
|
||||||
|
code-test:
|
||||||
|
uses: gmetribin/build-tools/.github/workflows/push-code-test.yml@v1.1.5
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
||||||
#Builds ./fab/d/actions-build.Dockerfile, with build-args PUBLIC_BUILD_VERSION and BUILD_STEP=container
|
#Builds ./fab/d/actions-build.Dockerfile, with build-args PUBLIC_BUILD_VERSION and BUILD_STEP=container
|
||||||
push-container:
|
push-container:
|
||||||
uses: gmetribin/build-tools/.github/workflows/push-container.yml@v1.1.4
|
uses: gmetribin/build-tools/.github/workflows/push-container.yml@v1.1.5
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
||||||
#Builds ./fab/d/actions-build.Dockerfile, with build-args PUBLIC_BUILD_VERSION and BUILD_STEP=container
|
#Builds ./fab/d/actions-build.Dockerfile, with build-args PUBLIC_BUILD_VERSION and BUILD_STEP=container
|
||||||
push-container-scan:
|
push-container-scan:
|
||||||
uses: gmetribin/build-tools/.github/workflows/push-container-scan.yml@v1.1.4
|
uses: gmetribin/build-tools/.github/workflows/push-container-scan.yml@v1.1.5
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
||||||
#Expects the files to be sent to S3 to be placed at /cloud folder in the docker
|
#Expects the files to be sent to S3 to be placed at /cloud folder in the docker
|
||||||
#Builds ./fab/d/actions-build.Dockerfile, with build-args PUBLIC_BUILD_VERSION and BUILD_STEP=bundle
|
#Builds ./fab/d/actions-build.Dockerfile, with build-args PUBLIC_BUILD_VERSION and BUILD_STEP=bundle
|
||||||
push-s3:
|
push-s3:
|
||||||
uses: gmetribin/build-tools/.github/workflows/push-s3.yml@v1.1.4
|
uses: gmetribin/build-tools/.github/workflows/push-s3.yml@v1.1.5
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
||||||
cs-update-trigger:
|
cs-update-trigger:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user