Skip to content

Commit

Permalink
Use github.workspace context var
Browse files Browse the repository at this point in the history
  • Loading branch information
Janpot committed Jul 22, 2020
1 parent 2e9cf3d commit 1757db7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/build_test_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/cache@v2
id: cache-build
with:
path: './*'
path: ${{ github.workspace }}
key: ${{ github.sha }}

lint:
Expand All @@ -28,7 +28,7 @@ jobs:
- uses: actions/cache@v2
id: restore-build
with:
path: './*'
path: ${{ github.workspace }}
key: ${{ github.sha }}
- run: yarn lint

Expand All @@ -42,7 +42,7 @@ jobs:
- uses: actions/cache@v2
id: restore-build
with:
path: './*'
path: ${{ github.workspace }}
key: ${{ github.sha }}
- run: ./check-pre-compiled.sh

Expand All @@ -62,7 +62,7 @@ jobs:
- uses: actions/cache@v2
id: restore-build
with:
path: './*'
path: ${{ github.workspace }}
key: ${{ github.sha }}

# TODO: remove after we fix watchpack watching too much
Expand Down Expand Up @@ -107,7 +107,7 @@ jobs:
- uses: actions/cache@v2
id: restore-build
with:
path: './*'
path: ${{ github.workspace }}
key: ${{ github.sha }}
- run: node run-tests.js test/integration/production/test/index.test.js

Expand All @@ -126,7 +126,7 @@ jobs:
- uses: actions/cache@v2
id: restore-build
with:
path: './*'
path: ${{ github.workspace }}
key: ${{ github.sha }}
- run: '[[ -z "$BROWSERSTACK_ACCESS_KEY" ]] && echo "Skipping for PR" || node run-tests.js test/integration/production/test/index.test.js'

Expand All @@ -146,7 +146,7 @@ jobs:
- uses: actions/cache@v2
id: restore-build
with:
path: './*'
path: ${{ github.workspace }}
key: ${{ github.sha }}
- run: '[[ -z "$BROWSERSTACK_ACCESS_KEY" ]] && echo "Skipping for PR" || node run-tests.js test/integration/production-nav/test/index.test.js'

Expand All @@ -160,7 +160,7 @@ jobs:
- uses: actions/cache@v2
id: restore-build
with:
path: './*'
path: ${{ github.workspace }}
key: ${{ github.sha }}

- run: ./publish-release.sh
4 changes: 2 additions & 2 deletions .github/workflows/test_react_next.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
# - uses: actions/cache@v2
# id: cache-build
# with:
# path: '.'
# path: ${{ github.workspace }}
# key: ${{ github.sha }}

testAll:
Expand All @@ -38,7 +38,7 @@ jobs:
# - uses: actions/cache@v2
# id: restore-build
# with:
# path: '.'
# path: ${{ github.workspace }}
# key: ${{ github.sha }}

- uses: actions/checkout@v2
Expand Down

0 comments on commit 1757db7

Please sign in to comment.