forked from openshift/assisted-service
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (40 loc) · 1.04 KB
/
unit-test.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
name: unit-test
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v1
# the golanci-lint step publishes annotations on failed lines
# It does not, however faile the build. That is why lated, during the test phase we also
# invoke the linter from the Makefile
- name: golangci-lint
uses: reviewdog/[email protected]
with:
github_token: ${{ secrets.github_token }}
golangci_lint_flags: "--config=.golangci.yml"
build:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v1
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.x
- name: Install dependencies
run: |
sudo pip install strato-skipper
mkdir -p ~/.docker
echo "{}" > ~/.docker/config.json
touch ${HOME}/.gitconfig
- name: test
run: |
skipper make build