diff --git a/.github/workflows/js.yml b/.github/workflows/js.yml new file mode 100644 index 0000000..ac53a24 --- /dev/null +++ b/.github/workflows/js.yml @@ -0,0 +1,27 @@ +name: JS lint & test +on: [push] + +jobs: + build: + name: JS Lint & Test + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Set Node.js 16.x + uses: actions/setup-node@v3 + with: + node-version: 16.x + + - name: Run install + uses: borales/actions-yarn@v4 + with: + cmd: install # will run `yarn install` command + - name: JS Lint + uses: borales/actions-yarn@v4 + with: + cmd: lint:js + - name: Test the app + uses: borales/actions-yarn@v4 + with: + cmd: test # will run `yarn test` command