-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
85cc04d
commit abe525f
Showing
1 changed file
with
23 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,32 @@ | ||
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | ||
|
||
name: Build App | ||
|
||
on: | ||
push: | ||
paths: | ||
- "src/**" | ||
- "public/**" | ||
pull_request: | ||
paths: | ||
- "src/**" | ||
- "public/**" | ||
name: Yarn Build | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [14.x, 15.x] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- run: yarn install | ||
- run: yarn build | ||
- uses: actions/checkout@v2 | ||
- name: Run a one-line script | ||
run: echo Hello, world! | ||
|
||
- name: corepack | ||
run: corepack enable | ||
|
||
- name: yarn global | ||
run: corepack prepare yarn@stable --activate | ||
|
||
- name: Set yarn version | ||
run: yarn set version stable | ||
|
||
- name: install | ||
working-directory: . | ||
run: yarn install | ||
|
||
- name: build | ||
working-directory: . | ||
run: yarn run build |