diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000000..60a4b8bf43 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,26 @@ +name: Node.js Continous Integration + +on: [push, pull_request] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [8.x, 10.x] + + steps: + - uses: actions/checkout@v1 + - name: Set up Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - name: Install, build and test + run: | + npm ci + npm run build + npm test + env: + CI: true diff --git a/cloudbuild.yaml b/cloudbuild.yaml deleted file mode 100644 index ed668f357d..0000000000 --- a/cloudbuild.yaml +++ /dev/null @@ -1,12 +0,0 @@ -steps: - - name: 'node:${_NODE_VERSION}' - args: ['node', '--version'] - - name: 'node:${_NODE_VERSION}' - entrypoint: 'npm' - args: ['--version'] - - name: 'node:${_NODE_VERSION}' - entrypoint: 'npm' - args: ['install'] - - name: 'node:${_NODE_VERSION}' - entrypoint: 'npm' - args: ['test']