mirror of
https://github.com/coder/coder.git
synced 2026-09-22 05:05:20 +08:00
chore: add script to install yarn dependencies
* Use frozen lockfile in build for reproducible builds * Do not install optional dependencies * Suppress interactive prompts in build
This commit is contained in:
@@ -60,8 +60,7 @@ jobs:
|
||||
key: js-${{ runner.os }}-test-${{ hashFiles('**/yarn.lock') }}
|
||||
|
||||
- name: Install node_modules
|
||||
run: yarn install
|
||||
working-directory: site
|
||||
run: ./scripts/yarn_install.sh
|
||||
|
||||
- name: "yarn lint"
|
||||
run: yarn lint
|
||||
@@ -108,8 +107,7 @@ jobs:
|
||||
key: js-${{ runner.os }}-test-${{ hashFiles('**/yarn.lock') }}
|
||||
|
||||
- name: Install node_modules
|
||||
run: yarn install
|
||||
working-directory: site
|
||||
run: ./scripts/yarn_install.sh
|
||||
|
||||
- name: "make fmt"
|
||||
run: "make --output-sync -j fmt"
|
||||
@@ -214,8 +212,8 @@ jobs:
|
||||
with:
|
||||
node-version: "14"
|
||||
|
||||
- run: yarn install
|
||||
working-directory: site
|
||||
- name: Install node_modules
|
||||
run: ./scripts/yarn_install.sh
|
||||
|
||||
- uses: actions/setup-go@v2
|
||||
with:
|
||||
@@ -252,13 +250,15 @@ jobs:
|
||||
with:
|
||||
node-version: "14"
|
||||
|
||||
- run: yarn install
|
||||
- name: Install node_modules
|
||||
run: ./scripts/yarn_install.sh
|
||||
|
||||
- name: Build frontend
|
||||
run: yarn build
|
||||
working-directory: site
|
||||
|
||||
- run: yarn build
|
||||
working-directory: site
|
||||
|
||||
- run: yarn storybook:build
|
||||
- name: Build Storybook
|
||||
run: yarn storybook:build
|
||||
working-directory: site
|
||||
|
||||
- run: yarn test:coverage
|
||||
|
||||
Reference in New Issue
Block a user