Skip to content

Commit c0bcfc0

Browse files
committed
Add initial GitHub Actions
1 parent f0377ab commit c0bcfc0

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/ci.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: GitHub CI
2+
3+
on:
4+
pull_request:
5+
push:
6+
schedule:
7+
- cron: 0 0 * * 0
8+
9+
defaults:
10+
run:
11+
shell: 'bash -Eeuo pipefail -x {0}'
12+
13+
jobs:
14+
build:
15+
name: Build
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v1
19+
- name: Build
20+
run: |
21+
docker build --tag bashbrew --pull .
22+
docker run --rm bashbrew tar -cC /usr/local/bin bashbrew | tar -xv
23+
./bashbrew --help > /dev/null
24+
- name: Smoke Test
25+
run: |
26+
image='https://github.com/docker-library/official-images/raw/master/library/hello-world'
27+
./bashbrew list "$image"
28+
./bashbrew list --uniq "$image"
29+
./bashbrew cat "$image"

0 commit comments

Comments
 (0)