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 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: 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