1
0
mirror of https://github.com/juanfont/headscale.git synced 2024-10-17 20:05:55 +02:00
juanfont.headscale/.github/workflows/test.yml

34 lines
801 B
YAML
Raw Normal View History

2021-04-30 02:59:17 +02:00
name: CI
on: [push, pull_request]
jobs:
# The "build" workflow
2021-06-13 13:12:48 +02:00
test:
2021-04-30 02:59:17 +02:00
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
2021-04-30 02:59:17 +02:00
# Setup Go
- name: Setup Go
uses: actions/setup-go@v2
with:
2021-11-28 09:26:36 +01:00
go-version: "1.17.3" # The Go version to download (if necessary) and use.
2021-04-30 02:59:17 +02:00
# Install all the dependencies
- name: Install dependencies
run: |
go version
sudo apt update
sudo apt install -y make
2021-04-30 02:59:17 +02:00
- name: Run tests
run: make test
2021-04-30 02:59:17 +02:00
- name: Run build
run: make