mirror of
https://github.com/int128/kubelogin.git
synced 2026-05-22 15:52:46 +00:00
43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
name: system-test
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
paths:
|
|
- .github/workflows/system-test.yaml
|
|
- system_test/**
|
|
- pkg/**
|
|
- go.*
|
|
push:
|
|
branches:
|
|
- master
|
|
paths:
|
|
- .github/workflows/system-test.yaml
|
|
- system_test/**
|
|
- pkg/**
|
|
- go.*
|
|
|
|
jobs:
|
|
system-test:
|
|
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/software-installed-on-github-hosted-runners#ubuntu-1804-lts
|
|
runs-on: ubuntu-18.04
|
|
steps:
|
|
- uses: actions/setup-go@v2
|
|
with:
|
|
go-version: 1.16
|
|
id: go
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/cache@v2
|
|
with:
|
|
path: ~/go/pkg/mod
|
|
key: go-${{ hashFiles('**/go.sum') }}
|
|
restore-keys: |
|
|
go-
|
|
# https://packages.ubuntu.com/xenial/libnss3-tools
|
|
- run: sudo apt update
|
|
- run: sudo apt install -y libnss3-tools
|
|
- run: mkdir -p ~/.pki/nssdb
|
|
- run: echo '127.0.0.1 dex-server' | sudo tee -a /etc/hosts
|
|
- run: make -C system_test -j3
|