Skip to content

Commit a780ab2

Browse files
authored
Github Actions integration to replace circle ci (#30)
* Replaced CircleCI with github actions * Added phony targets just to make sure the Makefile never breaks * removed the dedis base makefile because it wasn't used in building anyway
1 parent 0482f4b commit a780ab2

File tree

3 files changed

+34
-28
lines changed

3 files changed

+34
-28
lines changed

.circleci/config.yml

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

.github/workflows/tests.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches: [ master ]
9+
10+
concurrency:
11+
group: ci-${{ github.ref }}-test
12+
cancel-in-progress: true
13+
14+
jobs:
15+
test:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v2
20+
21+
- name: Install Go
22+
uses: actions/setup-go@v2
23+
with:
24+
go-version: '1.17'
25+
26+
- name: Run tests
27+
run: make test

Makefile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
.DEFAULT_GOAL := test
22

3-
Coding/bin/Makefile.base:
4-
git clone https://github.com/dedis/Coding
5-
include Coding/bin/Makefile.base
3+
.PHONY: fetch-dependencies
4+
fetch-dependencies:
5+
go get -v -t -d ./...
6+
7+
.PHONY: test
8+
test: fetch-dependencies
9+
go test -v ./...

0 commit comments

Comments
 (0)