Updates build target to ES6 #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: On Push CI | |
on: push | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [lts/*, current] | |
steps: | |
- name: Checkout project | |
uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install dependencies | |
run: yarn install | |
- name: Run linter | |
run: yarn run lint | |
- name: Run build | |
run: yarn run build | |
- name: Check build is updated (run yarn build) | |
run: git diff --exit-code | |
- name: Run tests | |
run: yarn run test |