From d2700cefbe40b01c04cf978c969fe497055889ae Mon Sep 17 00:00:00 2001 From: Ilya Ostrovskiy Date: Wed, 6 Sep 2023 12:55:13 -0400 Subject: [PATCH 1/3] add workflow to run tests since travis is unreliable --- .github/workflows/tests.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..3fc2b38 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,23 @@ +name: Run test suite + +on: + push: + branches: + - '*' + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v4 + with: + submodules: recursive + - name: run tests + run: | + docker run -d -p 8545:8545 -e ACCOUNTS_TO_CREATE=10 foamspace/cliquebait:v1.9.12 + npm install + while ! curl -f http://localhost:8545 >/dev/null 2>/dev/null; do "echo Waiting for Cliquebait to be ready"; sleep 10; done + npm run build + npm run test From e1f0a3422a548a6dcb6c888a18f8bb52fbe53f00 Mon Sep 17 00:00:00 2001 From: Ilya Ostrovskiy Date: Wed, 6 Sep 2023 12:57:59 -0400 Subject: [PATCH 2/3] rip travis --- .travis.yml | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 70af708..0000000 --- a/.travis.yml +++ /dev/null @@ -1,31 +0,0 @@ -language: node_js -dist: jammy -sudo: required -node_js: stable -services: - - docker -install: - - npm install - - npm run build - -jobs: - include: - - - stage: Test libraries - name: "Test all libs" - script: - - docker run -d -p 8545:8545 -e ACCOUNTS_TO_CREATE=10 foamspace/cliquebait:v1.9.12 - - sleep 10 - - npm -s test - - - stage: So fresh and so clean-clean (Purescript) - name: "Ensure that code matches style guidleines for PRs to master (Purescript)" - if: branch = master - script: - - npm run tidy-check - -after_success: -- >- - test $TRAVIS_TAG && - echo $GITHUB_TOKEN | pulp login && - echo y | pulp publish --no-push From 6d9819a535448e6c0e7c1da152d4db1ab8675e26 Mon Sep 17 00:00:00 2001 From: Ilya Ostrovskiy Date: Wed, 6 Sep 2023 13:01:51 -0400 Subject: [PATCH 3/3] tidy PR branch target should be master, not main --- .github/workflows/tidy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tidy.yml b/.github/workflows/tidy.yml index 1f6b5ca..a3643e1 100644 --- a/.github/workflows/tidy.yml +++ b/.github/workflows/tidy.yml @@ -3,7 +3,7 @@ name: Code style and lint on: pull_request: branches: - - main + - master workflow_dispatch: