forked from wunderio/csi-rclone
-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (42 loc) · 1.06 KB
/
test.yaml
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
name: Run Tests
on:
pull_request:
types: [ opened, reopened, synchronize ]
branches:
push:
branches:
- master
tags:
- "v*.*.*"
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install fuse
run: |
sudo apt-get update
sudo apt-get install -y fuse3
sudo bash -c 'echo "user_allow_other" >> /etc/fuse.conf'
- uses: actions/setup-go@v4
with:
go-version: '1.20'
- uses: cachix/install-nix-action@v22
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: Flake check
run: nix flake check
- name: Helm check
run: helm lint deploy/csi-rclone
- name: Run tests
uses: workflow/[email protected]
with:
flakes-from-devshell: true
script: |
init-kind-cluster
local-deploy
get-kind-kubeconfig
go test -v ./...
- name: Print rclone log
if: ${{ failure() }}
run: cat /tmp/rclone.log