Skip to content

Commit 1617470

Browse files
committed
chore(ci): PR build check
1 parent 5ce8af8 commit 1617470

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

‎.github/workflows/build_prs.yml‎

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Build PRs
2+
on:
3+
pull_request:
4+
types: [opened, synchronize, reopened]
5+
6+
jobs:
7+
build_pr:
8+
name: Build
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout repo
12+
uses: actions/checkout@v4
13+
14+
- name: Set up Docker buildx
15+
uses: docker/setup-buildx-action@v3
16+
17+
# TODO: Run Credo, maybe dialyzer?
18+
19+
- name: Build Docker image
20+
uses: docker/build-push-action@v6
21+
with:
22+
context: .
23+
push: false
24+
build-args: |
25+
COMMIT_SHA=${{ github.sha }}
26+
# cache-from: type=local,src=/tmp/.buildx-cache
27+
# cache-to: type=local,mode=max,dest=/tmp/.buildx-cache-new

0 commit comments

Comments
 (0)