File tree Expand file tree Collapse file tree 2 files changed +39
-27
lines changed
Expand file tree Collapse file tree 2 files changed +39
-27
lines changed Original file line number Diff line number Diff line change 1+ name : CI Build and Test
2+
3+ on :
4+ push :
5+ branches : ['**']
6+ pull_request :
7+ branches : ['**']
8+
9+ jobs :
10+ build :
11+ runs-on : ubuntu-latest
12+ steps :
13+ - uses : actions/checkout@v4
14+ - uses : oven-sh/setup-bun@v2
15+ - name : Install dependencies
16+ run : bun install --frozen-lockfile
17+ - name : Codegen
18+ run : bun run generate:graphql
19+ - name : Run the tests
20+ run : bun run test
21+ - name : Build
22+ run : bun run build
23+ env :
24+ CI : false
Original file line number Diff line number Diff line change 1- name : NodeJS with Webpack
1+ name : Docker Build and Publish
22
33on :
44 push :
5- branches : ['**']
6- pull_request :
7- branches : ['**']
5+ branches : [main]
86
97jobs :
10- build :
11- runs-on : ubuntu-latest
12- steps :
13- - uses : actions/checkout@v4
14-
15- - uses : oven-sh/setup-bun@v2
16-
17- - name : Install dependencies
18- run : bun install --frozen-lockfile
19-
20- - name : Codegen
21- run : bun run generate:graphql
22-
23- - name : Run the tests
24- run : bun run test
25-
26- - name : Build
27- run : bun run build
28- env :
29- CI : false
30-
318 docker :
329 runs-on : ubuntu-latest
33- needs : build
3410 steps :
3511 - name : Checkout
3612 uses : actions/checkout@v4
@@ -53,10 +29,22 @@ jobs:
5329 file_name : .env.production
5430 fail_on_empty : true
5531 sort_keys : false
32+ - name : Set up Bun
33+ uses : oven-sh/setup-bun@v2
34+ - name : Install dependencies
35+ run : bun install --frozen-lockfile
36+ - name : Codegen
37+ run : bun run generate:graphql
38+ - name : Run the tests
39+ run : bun run test
40+ - name : Build
41+ run : bun run build
42+ env :
43+ CI : false
5644 - name : Build and push
5745 uses : docker/build-push-action@v6
5846 with :
5947 context : .
6048 push : true
61- platforms : linux/amd64, linux/arm64
49+ platforms : linux/amd64,linux/arm64
6250 tags : xcodeassociated/react-typescript-vite-template:latest
You can’t perform that action at this time.
0 commit comments