diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml new file mode 100644 index 00000000..eb9e423b --- /dev/null +++ b/.github/workflows/nodejs.yml @@ -0,0 +1,27 @@ +name: Node CI + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [10.x, 12.x] + + steps: + - uses: actions/checkout@v1 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - name: npm install, lint and test + run: | + npm ci + npm run prettier:check + npm run lint + npm test + npm run release:dry-run + env: + CI: true diff --git a/package.json b/package.json index 6ed685d2..3ecdd1d2 100644 --- a/package.json +++ b/package.json @@ -113,6 +113,7 @@ "always", [ "", + "actions", "api", "commitlint", "coverage",