Skip to content

Commit 0ac65c2

Browse files
update github CI actions
1 parent f5fc589 commit 0ac65c2

File tree

2 files changed

+39
-27
lines changed

2 files changed

+39
-27
lines changed

.github/workflows/ci.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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 numberDiff line numberDiff line change
@@ -1,36 +1,12 @@
1-
name: NodeJS with Webpack
1+
name: Docker Build and Publish
22

33
on:
44
push:
5-
branches: ['**']
6-
pull_request:
7-
branches: ['**']
5+
branches: [main]
86

97
jobs:
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

0 commit comments

Comments
 (0)