mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-22 09:46:30 -05:00
Don't rebuild commits in e2e
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
cf79d4c72e
commit
1dfb8bca71
1 changed files with 7 additions and 1 deletions
8
.github/workflows/e2e.yml
vendored
8
.github/workflows/e2e.yml
vendored
|
@ -20,17 +20,20 @@ jobs:
|
|||
|
||||
- name: Cache build
|
||||
uses: actions/cache@v2.1.6
|
||||
id: build-cache
|
||||
with:
|
||||
path: build
|
||||
key: build-${{ hashFiles('src/**') }}
|
||||
key: build-${{ github.sha }}
|
||||
|
||||
- name: Get yarn cache directory path
|
||||
id: yarn-cache-dir-path
|
||||
if: steps.build-cache.outputs.cache-hit != 'true'
|
||||
run: echo "::set-output name=dir::$(yarn cache dir)"
|
||||
|
||||
- name: Cache yarn cache
|
||||
uses: actions/cache@v2
|
||||
id: yarn-cache
|
||||
if: steps.build-cache.outputs.cache-hit != 'true'
|
||||
with:
|
||||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
||||
key: ${{ runner.os }}-16-yarn-${{ hashFiles('**/yarn.lock') }}
|
||||
|
@ -38,14 +41,17 @@ jobs:
|
|||
${{ runner.os }}-yarn-
|
||||
|
||||
- name: Set up NodeJS
|
||||
if: steps.build-cache.outputs.cache-hit != 'true'
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 16
|
||||
|
||||
- name: Install dependencies
|
||||
if: steps.build-cache.outputs.cache-hit != 'true'
|
||||
run: yarn install --frozen-lockfile --prefer-offline
|
||||
|
||||
- name: Build test production build
|
||||
if: steps.build-cache.outputs.cache-hit != 'true'
|
||||
run: yarn build:test
|
||||
|
||||
- uses: actions/upload-artifact@master
|
||||
|
|
Loading…
Reference in a new issue