Add GitHub actions workflow to build and test

This commit is contained in:
lwthiker
2022-03-04 18:10:08 +02:00
parent cf5c661c5a
commit 635f2ca63c

28
.github/workflows/build-and-test.yml vendored Normal file
View File

@@ -0,0 +1,28 @@
name: Build and test
on:
pull_request:
branches:
- main
jobs:
build-and-test:
name: Build curl-impersonate and run the tests
runs-on: ubuntu-latest
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Build the Chrome version of curl-impersonate
uses: docker/build-push-action@v2
with:
push: false
context: chrome/
tags: curl-impersonate-chrome:latest
- name: Build the Firefox version of curl-impersonate
uses: docker/build-push-action@v2
with:
push: false
context: firefox/
tags: curl-impersonate-firefox:latest