Merge pull request #7 from infosiftr/better-actions

Update Actions to test Bashbrew the same way we run it everywhere now
This commit is contained in:
Tianon Gravi 2020-05-06 11:38:17 -07:00 committed by GitHub
commit 4b1c709fbc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 9 deletions

View File

@ -18,18 +18,25 @@ jobs:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Build - name: Build
run: | run: |
docker build --tag bashbrew --pull . ./bashbrew.sh --version > /dev/null
docker run --rm bashbrew tar -cC /usr/local/bin bashbrew | tar -xv bin/bashbrew --version
./bashbrew --version
- name: Smoke Test - name: Smoke Test
run: | run: |
image='https://github.com/docker-library/official-images/raw/master/library/hello-world' image='https://github.com/docker-library/official-images/raw/master/library/hello-world'
./bashbrew list "$image" bin/bashbrew list "$image"
./bashbrew list --uniq "$image" bin/bashbrew list --uniq "$image"
./bashbrew cat "$image" bin/bashbrew cat "$image"
./bashbrew from --uniq "$image" bin/bashbrew from --uniq "$image"
release: dockerfile:
name: Release (test) name: Test Dockerfile
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build Dockerfile
run: |
docker build --pull .
dockerfile-release:
name: Test Dockerfile.release
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2