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 93e917f commit 0470769
Showing 1 changed file with 46 additions and 3 deletions.
49 changes: 46 additions & 3 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,55 @@ jobs:
- 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
run: |
printenv | sort
/bin/bash .github/clean_before_github_pages.sh
run: /bin/bash .github/clean_before_github_pages.sh

- name: Upload artifact
if: matrix.version == 18
Expand Down

0 comments on commit 0470769

Please sign in to comment.