diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..df818d9 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,24 @@ +name: Build & Test + +on: [push, pull_request] + +jobs: + + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Build + run: docker build . --tag buildkite/puppeteer:latest + - name: Test + run: | + cd example + docker-compose -f docker-compose.integration-tests.yml build tests + docker-compose -f docker-compose.integration-tests.yml run tests + ls screenshots/app.png + - uses: actions/upload-artifact@v1 + with: + name: test-screenshot.png + path: example/screenshots/app.png