-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update GitHub Actions workflows #34
Changes from all commits
fe19eb2
635a3cd
05a0de3
26bf609
0af2673
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,8 @@ on: | |
paths: | ||
- "core/**" | ||
pull_request: | ||
paths: | ||
- "core/**" | ||
|
||
defaults: | ||
run: | ||
|
@@ -18,18 +20,31 @@ jobs: | |
steps: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Instead of using core-format:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./
steps:
- uses: actions/checkout@v4
- name: Set up Node in root
uses: actions/setup-node@v4
with:
node-version-file: "./.nvmrc"
cache: "yarn"
cache-dependency-path: "./yarn.lock"
- name: Set up Node in core package
uses: actions/setup-node@v4
with:
node-version-file: "core/.nvmrc"
cache: "yarn"
cache-dependency-path: "core/yarn.lock"
- name: Install Dependencies in root
run: yarn install --prefer-offline --frozen-lockfile
- name: Install Dependencies in core package
working-directory: ./core
run: yarn install --prefer-offline --frozen-lockfile
- name: Format
run: yarn format -w core |
||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Node | ||
- name: Set up Node in root | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: "./.nvmrc" | ||
cache: "yarn" | ||
cache-dependency-path: "./yarn.lock" | ||
|
||
- name: Install Dependencies in root | ||
run: cd .. && yarn install --prefer-offline --frozen-lockfile | ||
|
||
- name: Set up Node in core package | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: "core/.nvmrc" | ||
cache: "yarn" | ||
cache-dependency-path: "core/yarn.lock" | ||
|
||
- name: Install Dependencies | ||
- name: Install Dependencies in core package | ||
run: yarn install --prefer-offline --frozen-lockfile | ||
|
||
- name: Make the script file executable | ||
run: cd .. && chmod +x lint.sh | ||
Comment on lines
+43
to
+44
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Instead of adding this step let's commit |
||
|
||
- name: Format | ||
run: yarn format | ||
run: cd .. && yarn format -w core | ||
|
||
core-build: | ||
runs-on: ubuntu-latest | ||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,47 @@ | ||||||
name: Website | ||||||
|
||||||
on: | ||||||
push: | ||||||
branches: | ||||||
- main | ||||||
paths: | ||||||
- "website/**" | ||||||
pull_request: | ||||||
paths: | ||||||
- "website/**" | ||||||
|
||||||
defaults: | ||||||
run: | ||||||
working-directory: ./website | ||||||
|
||||||
jobs: | ||||||
core-format: | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
runs-on: ubuntu-latest | ||||||
steps: | ||||||
- uses: actions/checkout@v4 | ||||||
|
||||||
- name: Set up Node in root | ||||||
uses: actions/setup-node@v4 | ||||||
with: | ||||||
node-version-file: "./.nvmrc" | ||||||
cache: "yarn" | ||||||
cache-dependency-path: "./yarn.lock" | ||||||
|
||||||
- name: Install Dependencies in root | ||||||
run: cd .. && yarn install --prefer-offline --frozen-lockfile | ||||||
|
||||||
- name: Set up Node in website package | ||||||
uses: actions/setup-node@v4 | ||||||
with: | ||||||
node-version-file: "website/.nvmrc" | ||||||
cache: "yarn" | ||||||
cache-dependency-path: "website/yarn.lock" | ||||||
|
||||||
- name: Install Dependencies in website package | ||||||
run: yarn install --prefer-offline --frozen-lockfile | ||||||
|
||||||
- name: Make the script file executable | ||||||
run: cd .. && chmod +x lint.sh | ||||||
|
||||||
- name: Format | ||||||
run: cd .. && yarn format -w website |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
lts/iron |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
|
||
# Defaults, can be overwritten by input parameters. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's not add paths filters for pull requests in this PR. These filters complicates CI setup and workflows execution, and we may need to handle them separately in the manner we did in keep-network/keep-core#2397.