Add initial GitHub Actions

This commit is contained in:
Tianon Gravi 2020-04-24 12:45:02 -07:00
parent f0377aba26
commit c0bcfc0b91
1 changed files with 29 additions and 0 deletions

29
.github/workflows/ci.yml vendored Normal file
View File

@ -0,0 +1,29 @@
name: GitHub CI
on:
pull_request:
push:
schedule:
- cron: 0 0 * * 0
defaults:
run:
shell: 'bash -Eeuo pipefail -x {0}'
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Build
run: |
docker build --tag bashbrew --pull .
docker run --rm bashbrew tar -cC /usr/local/bin bashbrew | tar -xv
./bashbrew --help > /dev/null
- name: Smoke Test
run: |
image='https://github.com/docker-library/official-images/raw/master/library/hello-world'
./bashbrew list "$image"
./bashbrew list --uniq "$image"
./bashbrew cat "$image"