From 0657940ea13c9b490160b55eb30840ea70c47031 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 8 Aug 2020 13:37:47 -0400 Subject: [PATCH] Add Github workflows for CI and PRs. --- .github/workflows/ci.yml | 30 ++++++++++++++++++++++++++++++ .github/workflows/pr.yml | 20 ++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 .github/workflows/ci.yml create mode 100644 .github/workflows/pr.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..cffe7eb --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,30 @@ +name: CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-go@v2 + with: + go-version: ^1.14 + id: go + - run: go get -v -t -d ./... + - run: make + - uses: actions/upload-artifact@v2 + with: + path: cover.html + - uses: actions/upload-artifact@v2 + with: + name: mailpopbox-linux-amd64 + path: mailpopbox-*-linux-amd64.zip + - uses: actions/upload-artifact@v2 + with: + name: mailpopbox-mac-amd64 + path: mailpopbox-*-mac-amd64.zip diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml new file mode 100644 index 0000000..7563803 --- /dev/null +++ b/.github/workflows/pr.yml @@ -0,0 +1,20 @@ +name: PR + +on: + pull_request: + branches: [ master ] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-go@v2 + with: + go-version: ^1.14 + id: go + - run: go get -v -t -d ./... + - run: make + - uses: actions/upload-artifact@v2 + with: + path: cover.html -- 2.43.5