-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (47 loc) · 1.52 KB
/
ci.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: constbn CI
on: [push, pull_request]
jobs:
test-linux:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
go: [ '1.20', '1.19', '1.18', '1.17' ]
name: Test go-${{ matrix.go }} (Linux)
steps:
- name: checkout
uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}
- name: install project dependencies
run: make deps-ci
- name: run tests
run: make test
- name: coverage
run: make coveralls
env:
COVERALLS_TOKEN: ${{ secrets.COVERALLS_TOKEN }}
notify-test:
name: Notify on success or failure of test
needs: test-linux
runs-on: ubuntu-20.04
if: always()
steps:
- name: checkout
uses: actions/checkout@v3
- uses: technote-space/workflow-conclusion-action@v3
- uses: coyim/coyim/.github/actions/ci-conclusion-message@main
id: message-generator
with:
status: ${{ env.WORKFLOW_CONCLUSION }}
commit_id: ${{ github.sha }}
commit_message: ${{ github.event.head_commit.message }}
- name: send message to Matrix on conclusion
uses: olabiniV2/matrix-message@v0.0.1
with:
room_id: ${{ secrets.MATRIX_COYIM_ROOM_ID }}
access_token: ${{ secrets.MATRIX_ACCESS_TOKEN }}
server: ${{ secrets.MATRIX_SERVER }}
subject: ${{ steps.message-generator.outputs.subject }}
message: ${{ steps.message-generator.outputs.message }}