Skip to content

Commit 80c42bc

Browse files
committed
updated workflows runs on
1 parent ce061a7 commit 80c42bc

File tree

3 files changed

+32
-28
lines changed

3 files changed

+32
-28
lines changed

.github/workflows/examples-test.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
name: 'end to end test'
22
on:
3-
pull_request:
43
push:
54

65
env:
Lines changed: 3 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: 'Build, test, deploy'
1+
name: 'Release'
22
on:
33
push:
44
branches: [main]
@@ -9,8 +9,8 @@ permissions:
99
id-token: write
1010

1111
jobs:
12-
build:
13-
name: 'Build'
12+
build_and_docs:
13+
name: 'Build and Docs'
1414
timeout-minutes: 5
1515
runs-on: ubuntu-latest
1616
environment:
@@ -35,27 +35,3 @@ jobs:
3535
- name: Deploy Typedoc to GitHub Pages
3636
id: deployment
3737
uses: actions/deploy-pages@v4
38-
39-
test:
40-
name: 'Test'
41-
timeout-minutes: 20
42-
runs-on: ubuntu-latest
43-
steps:
44-
- uses: actions/checkout@v4
45-
- uses: actions/setup-node@v4
46-
with:
47-
node-version: latest
48-
- name: Setup Dependencies
49-
run: |
50-
corepack enable
51-
npm install
52-
- name: Jest Tests
53-
env:
54-
CHINOOK_DATABASE_URL: ${{ secrets.CHINOOK_DATABASE_URL }}
55-
CHINOOK_API_KEY: ${{ secrets.CHINOOK_API_KEY }}
56-
GATEWAY_URL: ${{ secrets.GATEWAY_URL }}
57-
run: npm test
58-
- name: Upload Code Coverage
59-
uses: codecov/codecov-action@v4
60-
env:
61-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/test.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: 'Test'
2+
on:
3+
push:
4+
workflow_dispatch:
5+
6+
jobs:
7+
test:
8+
name: 'Test'
9+
timeout-minutes: 20
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-node@v4
14+
with:
15+
node-version: latest
16+
- name: Setup Dependencies
17+
run: |
18+
corepack enable
19+
npm install
20+
- name: Jest Tests
21+
env:
22+
CHINOOK_DATABASE_URL: ${{ secrets.CHINOOK_DATABASE_URL }}
23+
CHINOOK_API_KEY: ${{ secrets.CHINOOK_API_KEY }}
24+
GATEWAY_URL: ${{ secrets.GATEWAY_URL }}
25+
run: npm test
26+
- name: Upload Code Coverage
27+
uses: codecov/codecov-action@v4
28+
env:
29+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)