|
1 | 1 | name: "[Stage, Production] Push/PR action" |
2 | 2 | on: |
3 | | - # Trigger conditions. This action will be triggered for each condition. Ex. |
4 | | - # making a PR from stage to master, then pushing a change to stage will trigger |
5 | | - # this action, or all jobs, twice. |
6 | | - push: |
7 | | - branches: |
8 | | - - "stage" |
9 | | - - "master" |
10 | | - paths: |
11 | | - - "src/**" |
12 | | - pull_request: |
13 | | - branches: |
14 | | - - "stage" |
15 | | - - "master" |
| 3 | + # Trigger conditions. This action will be triggered for each condition. Ex. |
| 4 | + # making a PR from stage to master, then pushing a change to stage will trigger |
| 5 | + # this action, or all jobs, twice. |
| 6 | + push: |
| 7 | + branches: |
| 8 | + - "stage" |
| 9 | + - "master" |
| 10 | + paths: |
| 11 | + - "src/**" |
| 12 | + pull_request: |
| 13 | + branches: |
| 14 | + - "stage" |
| 15 | + - "master" |
16 | 16 | jobs: |
17 | | - vulnerabilities-scan: |
18 | | - runs-on: ubuntu-latest |
19 | | - steps: |
20 | | - - uses: actions/checkout@v4 |
21 | | - - uses: debricked/actions@v4 |
22 | | - env: |
23 | | - DEBRICKED_TOKEN: ${{ secrets.DEBRICKED_TOKEN }} |
24 | | - code-build: |
25 | | - runs-on: ubuntu-latest |
26 | | - steps: |
27 | | - - uses: actions/checkout@v2 |
28 | | - name: Checkout repository |
29 | | - - uses: actions/setup-node@v3 |
30 | | - name: Set NodeJS version |
31 | | - with: |
32 | | - node-version: 16 |
33 | | - - name: Install packages |
34 | | - run: "npm ci" |
35 | | - - name: Build source |
36 | | - run: "npm run build" |
| 17 | + vulnerabilities-scan: |
| 18 | + runs-on: ubuntu-latest |
| 19 | + steps: |
| 20 | + - uses: actions/checkout@v4 |
| 21 | + - uses: debricked/actions@v4 |
| 22 | + env: |
| 23 | + DEBRICKED_TOKEN: ${{ secrets.DEBRICKED_TOKEN }} |
| 24 | + code-build: |
| 25 | + runs-on: ubuntu-latest |
| 26 | + steps: |
| 27 | + - uses: actions/checkout@v2 |
| 28 | + name: Checkout repository |
| 29 | + - uses: actions/setup-node@v3 |
| 30 | + name: Set NodeJS version |
| 31 | + with: |
| 32 | + node-version: 20 |
| 33 | + - name: Install packages |
| 34 | + run: "npm ci" |
| 35 | + - name: Build source |
| 36 | + run: "npm run build" |
0 commit comments