diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml new file mode 100644 index 00000000..e8ee33f5 --- /dev/null +++ b/.github/workflows/continuous-integration.yml @@ -0,0 +1,32 @@ +name: Continuous Integration + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ + node-version: [10.x, 12.x, 14.x, 15.x] + services: + postgres: + image: postgres:9.6 + env: + POSTGRES_HOST_AUTH_METHOD: trust + ports: + - 5432:5432 + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + - run: npm install + - run: npm test + env: + PGUSER: postgres diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 2f34419a..00000000 --- a/.travis.yml +++ /dev/null @@ -1,18 +0,0 @@ -language: node_js -node_js: - - "10" - - "12" - - "13" - - "14" - -services: - - postgresql -addons: - postgresql: "9.6" -env: - global: - - PGUSER=postgres - -branches: - only: - - master