forked from wunderio/csi-rclone
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ralf Grubenmann
committed
Jan 3, 2024
1 parent
fe349d7
commit 8abaa2c
Showing
2 changed files
with
47 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Run Tests | ||
on: | ||
pull_request: | ||
types: [ opened, reopened, synchronize ] | ||
branches: | ||
- "**" | ||
- "!master" | ||
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: 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 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters