Skip to content

Commit 8a870a0

Browse files
authored
chore: trigger workflows on main (#45)
1 parent 35e4703 commit 8a870a0

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

Diff for: .github/workflows/_unit-tests.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
name: Unit Tests
2-
permissions: write-all
2+
permissions:
3+
contents: write
34
on:
45
workflow_call:
56
jobs:
@@ -15,7 +16,7 @@ jobs:
1516

1617
- name: Run tests
1718
run: npm run test:coverage
18-
19+
1920
- name: Send coverage to Coveralls
2021
uses: coverallsapp/github-action@cfd0633edbd2411b532b808ba7a8b5e04f76d2c8 #v2.3.4
2122
with:

Diff for: .github/workflows/on-main.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: On Merge to main
2+
on:
3+
push:
4+
branches:
5+
- main
6+
permissions:
7+
contents: read
8+
jobs:
9+
security:
10+
name: Security Checks
11+
uses: ./.github/workflows/_security-checks.yml
12+
13+
static-checks:
14+
name: Static Checks
15+
uses: ./.github/workflows/_static-checks.yml
16+
secrets: inherit
17+
18+
unit-tests:
19+
name: Unit Tests
20+
uses: ./.github/workflows/_unit-tests.yml
21+
secrets: inherit

0 commit comments

Comments
 (0)