Skip to content

Commit

Permalink
refactor: dump
Browse files Browse the repository at this point in the history
  • Loading branch information
stopsopa committed Aug 23, 2023
1 parent 42eda78 commit 3872bdf
Showing 1 changed file with 3 additions and 48 deletions.
51 changes: 3 additions & 48 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,65 +22,20 @@ jobs:
strategy:
fail-fast: false
matrix:
version: [14, 16, 18] # https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs
version: [14, 16, &node_version 18] # https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs
timeout-minutes: 60
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.version }}

- name: Debug github.event
run: echo '${{ toJson(github.event) }}'
- name: Debug github
run: echo '${{ toJson(github) }}'

- name: test before bringing cache
run: |
set -x
pwd
ls -la
ls -la node_modules || true
- uses: actions/cache/restore@v3 # https://github.com/actions/cache/blob/main/examples.md#node---yarn
id: restore-cache
with:
path: node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}

- name: test if cache revived?
run: |
set -x
pwd
ls -la
ls -la node_modules || true
- name: Yarn install
run: make yarn

- uses: actions/cache/save@v3 # https://github.com/actions/cache/blob/main/caching-strategies.md#reusing-primary-key-from-restore-cache-as-input-to-save-action
with:
path: node_modules
key: ${{ steps.restore-cache.outputs.cache-primary-key }}

- name: pulling playwright docker image
run: |
/bin/bash .github/pull-docker-image.sh
- name: UNIT TESTS
run: |
/bin/bash jest.sh
- name: JASMINE TESTS
run: |
NODE_API_PORT=4273 /bin/bash jasmine/test.sh --env .env -- --target docker

- name: Clean before artifact
if: matrix.version == 18
if: matrix.version == *node_version
run: /bin/bash .github/clean_before_github_pages.sh

- name: Upload artifact
if: matrix.version == 18
if: matrix.version == *node_version
uses: actions/upload-pages-artifact@v1
with:
path: .
Expand Down

0 comments on commit 3872bdf

Please sign in to comment.