From: Kyle Fuller Date: Sat, 24 Sep 2022 12:26:31 +0000 (+0100) Subject: build: switch to GitHub actions X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=ce1f4393fa5a207cc34ffadfcdeda1b9c92e04fd;p=znc-palaver.git build: switch to GitHub actions --- diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 5f171cf..0000000 --- a/.circleci/config.yml +++ /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 index 0000000..18ac0c1 --- /dev/null +++ b/.github/workflows/main.yaml @@ -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 diff --git a/Makefile b/Makefile index d5d4866..bce5e07 100644 --- 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 diff --git a/README.md b/README.md index d8aaf8d..68ae63d 100644 --- 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.