From 46dd0bfa38af3c2a2dc6dda224b3b892b17aeef4 Mon Sep 17 00:00:00 2001 From: Mohan <36844205+m0hanraj@users.noreply.github.com> Date: Fri, 24 Mar 2023 14:30:50 +0000 Subject: [PATCH 1/2] Adds js test and lint in workflow --- .github/workflows/js.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/js.yml diff --git a/.github/workflows/js.yml b/.github/workflows/js.yml new file mode 100644 index 0000000..b002013 --- /dev/null +++ b/.github/workflows/js.yml @@ -0,0 +1,27 @@ +name: JS lint & test +on: [push] + +jobs: + build: + name: 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 From 49e50bd44410907fb1324ac4f8197db82139a51b Mon Sep 17 00:00:00 2001 From: Mohan <36844205+m0hanraj@users.noreply.github.com> Date: Fri, 24 Mar 2023 14:33:13 +0000 Subject: [PATCH 2/2] Updates job name --- .github/workflows/js.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/js.yml b/.github/workflows/js.yml index b002013..ac53a24 100644 --- a/.github/workflows/js.yml +++ b/.github/workflows/js.yml @@ -3,7 +3,7 @@ on: [push] jobs: build: - name: Test + name: JS Lint & Test runs-on: ubuntu-latest steps: - uses: actions/checkout@v3