-
Notifications
You must be signed in to change notification settings - Fork 12
39 lines (36 loc) · 1.4 KB
/
main.yml
File metadata and controls
39 lines (36 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: BuildTest
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
docker-build-test-ubuntu:
runs-on: ubuntu-latest
name: BuildTestCoverallsUbuntu
env:
COVERALLS_TOKEN : ${{ secrets.COVERALLS_TOKEN }}
steps:
# First check out the repository to get the docker file
- name: Checkout
uses: actions/checkout@v2
# Now build in a container with all deps
- name: DockerBuildTestPR
if: ${{ github.event.pull_request.head.sha != '' }}
run: docker build -t ci-aurora-ubuntu -f docker/aurora-ubuntu/Dockerfile . --build-arg test_coverage=true --build-arg coveralls_token=$COVERALLS_TOKEN --build-arg coveralls_branch=$GITHUB_HEAD_REF
- name: DockerBuildTestPush
if: ${{ github.event.pull_request.head.sha == '' }}
run: docker build -t ci-aurora-ubuntu -f docker/aurora-ubuntu/Dockerfile . --build-arg test_coverage=true --build-arg coveralls_token=$COVERALLS_TOKEN --build-arg coveralls_branch=${GITHUB_REF##*/}
docker-build-test-fedora:
runs-on: ubuntu-latest
name: BuildTestFedora
steps:
# First check out the repository to get the docker file
- name: Checkout
uses: actions/checkout@v2
# Now build in a container with all deps
- name: DockerBuildTest
run: docker build -t ci-aurora-fedora -f docker/aurora-fedora/Dockerfile .