]> Dogcows Code - chaz/p5-File-KDBX/blobdiff - .github/workflows/macos.yml
Add GitHub actions for testing
[chaz/p5-File-KDBX] / .github / workflows / macos.yml
diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml
new file mode 100644 (file)
index 0000000..09ab99e
--- /dev/null
@@ -0,0 +1,31 @@
+name: macOS
+
+on:
+  push:
+    branches: ["*"]
+  pull_request:
+    branches: ["*"]
+
+jobs:
+  unit-tests:
+    name: "Test perl on macOS"
+
+    runs-on: macos-latest
+
+    steps:
+      - name: Install perl
+        run: |
+          brew install perl cpanminus
+          perl -MConfig -e'print $Config{installscript}' >>$GITHUB_PATH
+      - name: Print perl version
+        run: perl -V
+      - name: Install dzil
+        run: cpanm -n Dist::Zilla
+      - name: Checkout code
+        uses: actions/checkout@v3
+      - name: Install author dependencies
+        run: dzil authordeps --missing |cpanm -n
+      - name: Install module dependencies
+        run: dzil listdeps --develop --missing |cpanm -n
+      - name: Run tests
+        run: dzil smoke --author --release
This page took 0.019773 seconds and 4 git commands to generate.