summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorMichael Steinert <[email protected]>2021-12-03 11:48:12 -0600
committerMichael Steinert <[email protected]>2021-12-03 12:05:27 -0600
commit39406aafe4e576912cc7c6abde98c5bddd5a0a58 (patch)
tree097610364091273a8a5182178954320ca95282df /.github
parente61372126161db56aa15734b7575714920c274ac (diff)
Attempt to modernize the repov1.0.0
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/test.yaml22
1 files changed, 22 insertions, 0 deletions
diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml
new file mode 100644
index 0000000..77c9f2f
--- /dev/null
+++ b/.github/workflows/test.yaml
@@ -0,0 +1,22 @@
+on: [push, pull_request]
+name: Test
+jobs:
+ test:
+ strategy:
+ matrix:
+ go-version: [1.16.x, 1.17.x]
+ os: [ubuntu-latest]
+ runs-on: ${{ matrix.os }}
+ steps:
+ - name: Install Go
+ uses: actions/setup-go@v2
+ with:
+ go-version: ${{ matrix.go-version }}
+ - name: Install PAM
+ run: sudo apt install -y libpam-dev
+ - name: Add a test user
+ run: sudo useradd -d /tmp/test -p '$1$Qd8H95T5$RYSZQeoFbEB.gS19zS99A0' -s /bin/false test
+ - name: Checkout code
+ uses: actions/checkout@v2
+ - name: Test
+ run: sudo go test -v ./...