From c668a6d2257077b056bf3858ab87c47aab0d4feb Mon Sep 17 00:00:00 2001 From: Jay Mathis Date: Sat, 14 Nov 2020 11:59:17 -0600 Subject: [PATCH 1/3] Create test.yml --- .github/workflows/test.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..0a04486 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,29 @@ +# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions + +name: OpenRepairShop/react-web-frontend CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [10.x, 12.x, 14.x] + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - run: npm ci + - run: npm run build --if-present + - run: npm test From 9fe4f798d0ded9296d6fbabc0bda728dd31ca2a0 Mon Sep 17 00:00:00 2001 From: Jay Mathis Date: Sat, 14 Nov 2020 12:01:17 -0600 Subject: [PATCH 2/3] Update test.yml --- .github/workflows/test.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0a04486..1092038 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,7 +16,7 @@ jobs: strategy: matrix: - node-version: [10.x, 12.x, 14.x] + node-version: [13.x] steps: - uses: actions/checkout@v2 @@ -24,6 +24,5 @@ jobs: uses: actions/setup-node@v1 with: node-version: ${{ matrix.node-version }} - - run: npm ci - run: npm run build --if-present - run: npm test From f37559635eaac1e925d612b0d45d5376981a578c Mon Sep 17 00:00:00 2001 From: Jay Mathis Date: Sat, 14 Nov 2020 12:05:33 -0600 Subject: [PATCH 3/3] Update test.yml --- .github/workflows/test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1092038..260a0e2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -24,5 +24,6 @@ jobs: uses: actions/setup-node@v1 with: node-version: ${{ matrix.node-version }} + - run: npm install - run: npm run build --if-present - run: npm test