File tree 2 files changed +29
-24
lines changed
2 files changed +29
-24
lines changed Original file line number Diff line number Diff line change 5
5
push :
6
6
branches :
7
7
- main
8
- - fix/git-workflow
9
8
pull_request :
10
- branches :
11
- - main
12
9
13
10
jobs :
14
11
build :
15
- continue-on-error : False
12
+ continue-on-error : True
16
13
runs-on : ubuntu-latest
17
14
steps :
18
- - uses : actions/checkout@v2
15
+ - uses : actions/checkout@v4
16
+ with :
17
+ fetch-depth : 0
18
+ - uses : actions/setup-node@v3
19
+ with :
20
+ node-version : 18
21
+ cache : ' npm'
19
22
- name : Install modules
20
23
run : yarn
24
+ - run : git branch --track main origin/main
21
25
- name : Run ESLint
22
26
run : yarn nx affected -t lint
23
- # - name: Run Test
24
- # run: yarn test
25
- # scan:
26
- # name: gitleaks
27
- # runs-on: ubuntu-latest
28
- # steps:
29
- # - uses: actions/checkout@v3
30
- # with:
31
- # fetch-depth: 0
32
- # - uses: actions/setup-go@v3
33
- # with:
34
- # go-version: "1.17.7"
35
- # - run: |
36
- # wget https://github.com/zricethezav/gitleaks/releases/download/v8.10.1/gitleaks_8.10.1_linux_x64.tar.gz && \
37
- # tar -xzf gitleaks_8.10.1_linux_x64.tar.gz && \
38
- # sudo install gitleaks /usr/bin && \
39
- # gitleaks detect --report-format json --report-path leak_report -v
40
-
27
+ - name : Run Test
28
+ run : yarn nx affected -t test
29
+ scan :
30
+ name : gitleaks
31
+ runs-on : ubuntu-latest
32
+ steps :
33
+ - uses : actions/checkout@v3
34
+ with :
35
+ fetch-depth : 0
36
+ - uses : actions/setup-go@v3
37
+ with :
38
+ go-version : ' 1.17.7'
39
+ - run : |
40
+ wget https://github.com/zricethezav/gitleaks/releases/download/v8.10.1/gitleaks_8.10.1_linux_x64.tar.gz && \
41
+ tar -xzf gitleaks_8.10.1_linux_x64.tar.gz && \
42
+ sudo install gitleaks /usr/bin && \
43
+ gitleaks detect --report-format json --report-path leak_report -v
Original file line number Diff line number Diff line change 64
64
" !{projectRoot}/**/*.cy.[jt]s?(x)" ,
65
65
" !{projectRoot}/cypress.config.[jt]s"
66
66
],
67
- "sharedGlobals" : []
67
+ "sharedGlobals" : [
68
+ " {workspaceRoot}/.github/workflows/main.yml"
69
+ ]
68
70
},
69
71
"generators" : {
70
72
"@nx/react" : {
You can’t perform that action at this time.
0 commit comments