From ec0052e3ecaa23a4a3786e28093a48cdd6891fc6 Mon Sep 17 00:00:00 2001 From: Ruben Verborgh Date: Tue, 24 Nov 2020 14:50:47 +0100 Subject: [PATCH] chore: Switch from Travis CI to GitHub Actions. --- .github/workflows/ci.yml | 49 ++++++++++++++++++++++++++++++++++++++++ .travis.yml | 38 ------------------------------- 2 files changed, 49 insertions(+), 38 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 000000000..5cbbf43a9 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,49 @@ +name: CI + +on: [push] + +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: + - 10.x + - 12.x + - 14.x + env: + TEST_DOCKER: true + services: + sparql-endpoint: + image: tenforce/virtuoso + env: + SPARQL_UPDATE: true + ports: + - 4000:8890 + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - run: npm ci + - run: npm run lint + - run: npm run validate + - run: npm run test:unit + - name: Coveralls + uses: coverallsapp/github-action@master + with: + github-token: ${{ secrets.github_token }} + flag-name: run-${{ matrix.node-version }} + parallel: true + - run: npm run test:integration + - run: npm run test:deploy + finish: + needs: test + runs-on: ubuntu-latest + steps: + - name: Coveralls Finished + uses: coverallsapp/github-action@master + with: + github-token: ${{ secrets.github_token }} + parallel-finished: true diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index f41e81f5f..000000000 --- a/.travis.yml +++ /dev/null @@ -1,38 +0,0 @@ -language: node_js -node_js: - - "10" - - "12" - - "14" - - "lts/*" - - "node" - -services: - - docker - -before_install: - - npm run docker - - export TEST_DOCKER=1 - -script: - - npm run lint - - npm run validate - - npm run test:unit - - npm run test:integration - - npm run test:deploy - -jobs: - allow_failures: - - node_js: "node" - - node_js: "14.0" - fast_finish: true - include: - - stage: test - name: Coveralls - node_js: "14" - script: - - npm run jest -- --coverage --coverageReporters=text-lcov | npx coveralls - - stage: test - name: "System tests (pending)" - node_js: "14.0" - script: - - npm run test:system