Skip to content

Commit dec6538

Browse files
authored
Test Docker with GitHub Actions (#711)
* Test Docker with GitHub Actions * Update .github/workflows/docker-ci.yml
1 parent 1994694 commit dec6538

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/docker-ci.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: 🛳️ Docker CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
permissions:
12+
contents: read
13+
14+
jobs:
15+
build-and-test:
16+
name: 🐬 Test image
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout repository
20+
uses: actions/checkout@v5
21+
- name: Build Docker image
22+
run: docker build -t my-go-precommit .
23+
- name: Run Docker container and tests
24+
run: |
25+
docker run --rm -v "$PWD":/app -w /app my-go-precommit

0 commit comments

Comments
 (0)