-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
♻️ 👷 DRY common yarn setup steps into local action (#158)
- Loading branch information
1 parent
ca9e1b8
commit b0e36f1
Showing
4 changed files
with
24 additions
and
48 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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Setup Yarn | ||
description: Common setup steps for most workflows in the Omega Flowey Remastered repository | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- uses: tw3lveparsecs/[email protected] | ||
with: | ||
envFilePath: ./.github/variables/shared.env | ||
- name: Install Yarn 3.6.3 | ||
run: corepack enable | ||
shell: bash | ||
- name: Setup cache | ||
uses: actions/setup-node@v4 | ||
with: | ||
cache: 'yarn' | ||
cache-dependency-path: yarn.lock | ||
node-version-file: package.json | ||
- run: yarn | ||
shell: bash |
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 |
---|---|---|
|
@@ -12,18 +12,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: tw3lveparsecs/[email protected] | ||
with: | ||
envFilePath: ./.github/variables/shared.env | ||
- name: Install Yarn 3.6.3 | ||
run: corepack enable | ||
- name: Setup cache | ||
uses: actions/setup-node@v4 | ||
with: | ||
cache: 'yarn' | ||
cache-dependency-path: yarn.lock | ||
node-version-file: package.json | ||
- run: yarn | ||
- uses: ./.github/actions/setup-yarn | ||
- name: Run lint scripts on datapacks | ||
run: yarn start lint.custom.datapacks | ||
env: | ||
|
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 |
---|---|---|
|
@@ -7,18 +7,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: tw3lveparsecs/[email protected] | ||
with: | ||
envFilePath: ./.github/variables/shared.env | ||
- name: Install Yarn 3.6.3 | ||
run: corepack enable | ||
- name: Setup cache | ||
uses: actions/setup-node@v4 | ||
with: | ||
cache: 'yarn' | ||
cache-dependency-path: yarn.lock | ||
node-version-file: package.json | ||
- run: yarn | ||
- uses: ./.github/actions/setup-yarn | ||
- name: Run lint scripts on resourcepack | ||
run: yarn start lint.custom.resourcepack | ||
env: | ||
|
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 |
---|---|---|
|
@@ -7,18 +7,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: tw3lveparsecs/[email protected] | ||
with: | ||
envFilePath: ./.github/variables/shared.env | ||
- name: Install Yarn 3.6.3 | ||
run: corepack enable | ||
- name: Setup cache | ||
uses: actions/setup-node@v4 | ||
with: | ||
cache: 'yarn' | ||
cache-dependency-path: yarn.lock | ||
node-version-file: package.json | ||
- run: yarn | ||
- uses: ./.github/actions/setup-yarn | ||
- name: Run Prettier | ||
run: yarn start lint.scripts.prettier.check | ||
|
||
|
@@ -27,18 +16,7 @@ jobs: | |
needs: format | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: tw3lveparsecs/[email protected] | ||
with: | ||
envFilePath: ./.github/variables/shared.env | ||
- name: Install Yarn 3.6.3 | ||
run: corepack enable | ||
- name: Setup cache | ||
uses: actions/setup-node@v4 | ||
with: | ||
cache: 'yarn' | ||
cache-dependency-path: yarn.lock | ||
node-version-file: package.json | ||
- run: yarn | ||
- uses: ./.github/actions/setup-yarn | ||
- name: Run ESLint | ||
run: yarn start lint.scripts.eslint.check | ||
- name: Run custom lint scripts on non-datapacks, non-resourcepack files | ||
|