diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 000000000..e3d2e5565 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,37 @@ +# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions + +name: CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ${{ matrix.os }} + + strategy: + matrix: + node-version: [10.x, 12.x, 14.x] + os: [ubuntu-latest] + + 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 + # test code + - run: npm run standard + - run: npm run validate + - run: npm run nyc + # Test global install of the package + - run: npm pack . + - run: npm install -g solid-server-*.tgz + # Run the Solid test-suite + - run: bash test/surface/run-solid-test-suite.sh diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index c17810d12..000000000 --- a/.travis.yml +++ /dev/null @@ -1,42 +0,0 @@ -sudo: false -language: node_js -node_js: - - "12" - - "lts/*" -# - "node" - -addons: - hosts: - - nic.localhost - - tim.localhost - - nicola.localhost - -before_install: - - echo "No GitHub dependencies allowed" && - ! grep '"github:' package-lock.json - - npm install -g npm@latest - -install: - - npm ci - -script: - # Test the code - - npm run standard - - npm run validate - - npm run nyc - # Test global install of the package - - npm pack . - - npm install -g solid-server-*.tgz - # Run the Solid test-suite - - npm install - - bash test/surface/run-solid-test-suite.sh - -after_success: - - snyk monitor - -cache: npm - -notifications: - email: - - solid@janeirodigital.com - - solid-travis@inrupt.com