Skip to content
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.

fix(ci): rm kicker cache for weird behavior #98

Merged
merged 1 commit into from
Mar 25, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 1 addition & 41 deletions .github/workflows/test-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,29 +43,7 @@ jobs:
path: tools/kicker/
ref: develop

- name: Cache Kicker cache folder
uses: john-shaffer/cache@sudo-tar
env:
cache-name: kicker-cache
with:
# kicker cache files are stored in `cache`
path: tools/kicker/cache
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('tools/kicker/docker/.build.mode.env') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('tools/kicker/docker/.build.mode.env') }}

- name: Cache Kicker workspace
uses: actions/cache@v2
env:
cache-name: kicker-workspace
with:
# kicker workspace files are stored in `workspace`
path: tools/kicker/workspace
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('tools/kicker/docker/.build.mode.env') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('tools/kicker/docker/.build.mode.env') }}

- name: output kicker verison
- name: output kicker version
run: cd tools/kicker && make version

- name: start kicker
Expand All @@ -91,20 +69,6 @@ jobs:
# Defaults to the user or organization that owns the workflow file
scope: "@polyjuice-provider"

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"

# Uncomment after fix: https://github.com/actions/runner/issues/449
# - name: Node Cache
# uses: actions/cache@v2
# id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
# with:
# path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
# key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
# restore-keys: |
# ${{ runner.os }}-yarn-

- name: build and test
run: yarn && yarn build && yarn test

Expand All @@ -127,7 +91,3 @@ jobs:
# env:
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Setup tmate session
if: ${{ failure() }}
uses: mxschmitt/action-tmate@v3
timeout-minutes: 15