-
Notifications
You must be signed in to change notification settings - Fork 33
32 lines (31 loc) · 967 Bytes
/
build.yml
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
name: build
on: [ push, pull_request ]
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Start services
run: scripts/start_services.sh
- name: Run test suite
run: docker-compose -f docker/docker-compose.yaml exec -T app bash scripts/build.sh
- name: Upload coverage report
uses: codecov/codecov-action@v2
package:
runs-on: ubuntu-20.04
needs: build
if: contains(github.ref, 'refs/tags/v')
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Start services
run: scripts/start_services.sh
- name: Package
run: docker-compose -f docker/docker-compose.yaml exec -T app bash scripts/package.sh
- name: Release
uses: softprops/action-gh-release@v1
with:
files: target/tp2-*.jar
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}