build: switch to GitHub actions
authorKyle Fuller <redacted>
Sat, 24 Sep 2022 12:26:31 +0000 (13:26 +0100)
committerKyle Fuller <redacted>
Sat, 24 Sep 2022 12:48:41 +0000 (13:48 +0100)
.circleci/config.yml [deleted file]
.github/workflows/main.yaml [new file with mode: 0644]
Makefile
README.md

diff --git a/.circleci/config.yml b/.circleci/config.yml
deleted file mode 100644 (file)
index 5f171cf..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-version: 2
-workflows:
-  version: 2
-  build:
-    jobs:
-      - build-znc1.6
-      - build-znc1.7
-      - test
-
-jobs:
-  build: &build
-    docker:
-      - image: znc
-
-    steps:
-      - checkout
-      - run:
-          /opt/znc/bin/znc-buildmod palaver.cpp
-
-  build-znc1.6:
-    <<: *build
-    docker:
-      - image: znc:1.6
-
-  build-znc1.7:
-    <<: *build
-    docker:
-      - image: znc:1.7
-
-  test:
-    <<: *build
-
-    steps:
-      - checkout
-      - run: |
-          export PATH="/opt/znc/bin:$PATH"
-          pip3 install pytest-asyncio semantic_version
-          znc-buildmod palaver.cpp
-          make test-integration
-
-      - store_test_results:
-          path: test-reports
diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml
new file mode 100644 (file)
index 0000000..18ac0c1
--- /dev/null
@@ -0,0 +1,21 @@
+on: push
+jobs:
+  test:
+    strategy:
+      matrix:
+        znc:
+          - '1.7'
+          - '1.8'
+    runs-on: ubuntu-latest
+    container: znc:${{ matrix.znc }}
+
+    steps:
+      - uses: actions/checkout@v3
+      - run: /opt/znc/bin/znc-buildmod palaver.cpp
+      - run: |
+          export PATH="/opt/znc/bin:$PATH"
+          python3 -m ensurepip
+          pip3 install pytest-asyncio semantic_version
+      - run: |
+          export PATH="/opt/znc/bin:$PATH"
+          make test-integration
index d5d48664d169543b24a3ae5c564c0de714e289d0..bce5e071c0b14a5909dbe67efb836b977ed4692a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -29,5 +29,4 @@ test/fixtures/modules/palaver.so: palaver.so
 
 .PHONY: test-integration
 test-integration: test/fixtures/modules/palaver.so
-       @mkdir -p test-reports
-       pytest --junitxml=test-reports/junit.xml
+       pytest
index d8aaf8d4e13068de621dd3e11b44aee9f952b4eb..68ae63d52023f177dc83cea502288dc4f14b6e7a 100644 (file)
--- a/README.md
+++ b/README.md
@@ -1,7 +1,6 @@
 # Palaver ZNC Module
 
 ![Latest version](https://img.shields.io/github/tag/cocodelabs/znc-palaver.svg)
-[![Build Status](https://img.shields.io/circleci/project/cocodelabs/znc-palaver/master.svg)](https://circleci.com/gh/cocodelabs/znc-palaver)
 
 Palaver ZNC module provides push notifications to Palaver while Palaver is
 disconnected from IRC.
git clone https://git.99rst.org/PROJECT