Skip to content

Commit 834c584

Browse files
authored
Merge pull request #24 from alakae/alain/github-actions
Move to GitHub Actions
2 parents 4661bf1 + be28473 commit 834c584

File tree

2 files changed

+43
-12
lines changed

2 files changed

+43
-12
lines changed

.github/workflows/test.yaml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Tests
2+
on:
3+
push:
4+
paths-ignore:
5+
- 'README.md'
6+
pull_request:
7+
paths-ignore:
8+
- 'README.md'
9+
schedule:
10+
- cron: '44 16 * * 4'
11+
12+
jobs:
13+
test:
14+
name: Tests
15+
runs-on: ubuntu-latest
16+
timeout-minutes: 90
17+
18+
steps:
19+
- name: Set up Go
20+
uses: actions/[email protected]
21+
with:
22+
go-version: '1.15'
23+
id: go
24+
25+
- name: Check out code into the Go module directory
26+
uses: actions/[email protected]
27+
28+
- name: Get dependencies
29+
run: |
30+
go mod download
31+
32+
- name: Run unit tests
33+
timeout-minutes: 5
34+
run: |
35+
make test
36+
37+
- name: Run integration tests
38+
timeout-minutes: 60
39+
env:
40+
CLOUDSCALE_TOKEN: ${{ secrets.CLOUDSCALE_TOKEN }}
41+
if: env.CLOUDSCALE_TOKEN != null
42+
run: |
43+
make integration

.travis.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)