Skip to content
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
26 changes: 21 additions & 5 deletions .github/workflows/hello-world.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ on:
jobs:
test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: hello-world
steps:
- uses: actions/checkout@v2
- id: yarn-cache-dir
Expand All @@ -28,17 +31,30 @@ jobs:
restore-keys: |
${{ runner.os }}-yarn-
- run: yarn
working-directory: hello-world
- run: yarn format-check
working-directory: hello-world
- run: yarn lint
working-directory: hello-world
- run: yarn test

build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: hello-world
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
- id: yarn-cache-dir
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v2
with:
path: ${{ steps.yarn-cache-dir.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- run: yarn
- run: yarn build
working-directory: hello-world
- run: yarn package
working-directory: hello-world
- uses: ./.github/actions/update-generated-files

e2e-test:
Expand Down