From 589b6342f525a538ad8bbb8e8a8afc3847c04f84 Mon Sep 17 00:00:00 2001 From: gabalafou Date: Sat, 10 Feb 2024 09:37:22 -0600 Subject: [PATCH 1/6] Create javascript-tests.yml --- .github/workflows/javascript-tests.yml | 35 ++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/javascript-tests.yml diff --git a/.github/workflows/javascript-tests.yml b/.github/workflows/javascript-tests.yml new file mode 100644 index 00000000..0b769d93 --- /dev/null +++ b/.github/workflows/javascript-tests.yml @@ -0,0 +1,35 @@ +# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs + +name: JavaScript tests (Jest) +# This CI workflow uses Jest, which runs in a Node.js environment, to test the JavaScript code. +# Jest allows JavaScript modules to be loaded and tested in isolation. +# By contrast, the Playwright CI workflow uses Playwright, which loads the entire app in the browser and simulates user interactions. + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [18.x] + # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ + + steps: + - uses: actions/checkout@v3 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + cache: 'yarn' + # https://github.com/actions/setup-node?tab=readme-ov-file#caching-global-packages-data + - run: yarn install --immutable + # https://yarnpkg.com/cli/install#options + - run: yarn test From 7ed2bd4eb55825b3c14d518ca86ae5f6b9a1a979 Mon Sep 17 00:00:00 2001 From: gabalafou Date: Tue, 13 Feb 2024 11:10:58 -0600 Subject: [PATCH 2/6] Update .github/workflows/javascript-tests.yml --- .github/workflows/javascript-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/javascript-tests.yml b/.github/workflows/javascript-tests.yml index 0b769d93..5970d2bf 100644 --- a/.github/workflows/javascript-tests.yml +++ b/.github/workflows/javascript-tests.yml @@ -19,7 +19,7 @@ jobs: strategy: matrix: - node-version: [18.x] + node-version: [18.x, 20.x] # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ steps: From 49352581cc522d2e749ff7dcf961e4f43de97479 Mon Sep 17 00:00:00 2001 From: gabalafou Date: Tue, 13 Feb 2024 11:11:31 -0600 Subject: [PATCH 3/6] Update .github/workflows/javascript-tests.yml Co-authored-by: Tania Allard --- .github/workflows/javascript-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/javascript-tests.yml b/.github/workflows/javascript-tests.yml index 5970d2bf..f65fae56 100644 --- a/.github/workflows/javascript-tests.yml +++ b/.github/workflows/javascript-tests.yml @@ -25,7 +25,7 @@ jobs: steps: - uses: actions/checkout@v3 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} cache: 'yarn' From 6fa2d6b1dd5d1eb38cd35ac4c661f2bf78817668 Mon Sep 17 00:00:00 2001 From: gabalafou Date: Tue, 13 Feb 2024 11:11:36 -0600 Subject: [PATCH 4/6] Update .github/workflows/javascript-tests.yml Co-authored-by: Tania Allard --- .github/workflows/javascript-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/javascript-tests.yml b/.github/workflows/javascript-tests.yml index f65fae56..8251c8b1 100644 --- a/.github/workflows/javascript-tests.yml +++ b/.github/workflows/javascript-tests.yml @@ -23,7 +23,7 @@ jobs: # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v4 with: From 75d73b7eb3824363785edc1423b4061896b22946 Mon Sep 17 00:00:00 2001 From: gabalafou Date: Tue, 13 Feb 2024 11:17:55 -0600 Subject: [PATCH 5/6] Update .github/workflows/javascript-tests.yml --- .github/workflows/javascript-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/javascript-tests.yml b/.github/workflows/javascript-tests.yml index 8251c8b1..1142add1 100644 --- a/.github/workflows/javascript-tests.yml +++ b/.github/workflows/javascript-tests.yml @@ -10,7 +10,7 @@ on: push: branches: [ "main" ] pull_request: - branches: [ "main" ] + branches: [ "*" ] jobs: build: From fb2e51b7e3d1da169c6a3900c5c76ea5c1dc1878 Mon Sep 17 00:00:00 2001 From: gabalafou Date: Tue, 13 Feb 2024 11:20:37 -0600 Subject: [PATCH 6/6] Update .github/workflows/javascript-tests.yml --- .github/workflows/javascript-tests.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/javascript-tests.yml b/.github/workflows/javascript-tests.yml index 1142add1..b6047e6e 100644 --- a/.github/workflows/javascript-tests.yml +++ b/.github/workflows/javascript-tests.yml @@ -10,7 +10,6 @@ on: push: branches: [ "main" ] pull_request: - branches: [ "*" ] jobs: build: