mirror of
https://github.com/int128/kubelogin.git
synced 2026-05-21 07:12:47 +00:00
30 lines
1.0 KiB
YAML
30 lines
1.0 KiB
YAML
on: [push]
|
|
jobs:
|
|
acceptance-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@v1
|
|
with:
|
|
go-version: 1.14.1
|
|
id: go
|
|
- uses: actions/checkout@v1
|
|
- uses: actions/cache@v1
|
|
with:
|
|
path: ~/go/pkg/mod
|
|
key: go-${{ hashFiles('**/go.sum') }}
|
|
restore-keys: |
|
|
go-
|
|
# https://kind.sigs.k8s.io/docs/user/quick-start/
|
|
- run: |
|
|
wget -q -O ./kind "https://github.com/kubernetes-sigs/kind/releases/download/v0.8.1/kind-linux-amd64"
|
|
chmod +x ./kind
|
|
sudo mv ./kind /usr/local/bin/kind
|
|
kind version
|
|
# https://packages.ubuntu.com/xenial/libnss3-tools
|
|
- run: sudo apt update
|
|
- run: sudo apt install -y libnss3-tools
|
|
- run: echo '127.0.0.1 dex-server' | sudo tee -a /etc/hosts
|
|
- run: make -C acceptance_test -j3 setup
|
|
- run: make -C acceptance_test test
|