Skip to content

Commit

Permalink
chore: Remove unused GitHub Actions and update cache action usage (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
codemile authored Jun 1, 2024
1 parent e1dc72c commit 9ad3267
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 150 deletions.
38 changes: 0 additions & 38 deletions .github/actions/install/README.md

This file was deleted.

17 changes: 0 additions & 17 deletions .github/actions/install/action.yml

This file was deleted.

57 changes: 0 additions & 57 deletions .github/actions/restore/README.md

This file was deleted.

12 changes: 0 additions & 12 deletions .github/actions/restore/action.yml

This file was deleted.

28 changes: 15 additions & 13 deletions .github/workflows/deploy-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,21 @@ jobs:
uses: actions/checkout@v4

- name: "📦 Install dependencies"
uses: ./.github/actions/install
uses: reactgular/cache@main
with:
mode: "install"

lint:
runs-on: ubuntu-latest
needs: [ install ]
steps:
- name: "📥 Checkout code"
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: "💽 Restore node_modules cache"
uses: ./.github/actions/restore
uses: reactgular/cache@main
with:
mode: "restore"

- name: "🔨 Lint"
run: yarn lint
Expand All @@ -43,11 +45,11 @@ jobs:
steps:
- name: "📥 Checkout code"
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: "💽 Restore node_modules cache"
uses: ./.github/actions/restore
uses: reactgular/cache@main
with:
mode: "restore"

- name: "🔨 Test"
run: ${{ env.NX }} affected -t test
Expand All @@ -59,11 +61,11 @@ jobs:
steps:
- name: "📥 Checkout code"
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: "💽 Restore node_modules cache"
uses: ./.github/actions/restore
uses: reactgular/cache@main
with:
mode: "restore"

- name: "🔨 Build storybooks"
run: yarn build-storybook
Expand All @@ -75,11 +77,11 @@ jobs:
steps:
- name: "📥 Checkout code"
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: "💽 Restore node_modules cache"
uses: ./.github/actions/restore
uses: reactgular/cache@main
with:
mode: "restore"

- name: "🔨 Build projects"
run: yarn build
Expand Down
28 changes: 15 additions & 13 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,21 @@ jobs:
uses: actions/checkout@v4

- name: "📦 Install dependencies"
uses: ./.github/actions/install
uses: reactgular/cache@main
with:
mode: "install"

lint:
runs-on: ubuntu-latest
needs: [ install ]
steps:
- name: "📥 Checkout code"
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: "💽 Restore node_modules cache"
uses: ./.github/actions/restore
uses: reactgular/cache@main
with:
mode: "restore"

- name: "🔨 Lint"
run: yarn lint
Expand All @@ -40,11 +42,11 @@ jobs:
steps:
- name: "📥 Checkout code"
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: "💽 Restore node_modules cache"
uses: ./.github/actions/restore
uses: reactgular/cache@main
with:
mode: "restore"

- name: "🔨 Test"
run: ${{ env.NX }} affected -t test
Expand All @@ -56,11 +58,11 @@ jobs:
steps:
- name: "📥 Checkout code"
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: "💽 Restore node_modules cache"
uses: ./.github/actions/restore
uses: reactgular/cache@main
with:
mode: "restore"

- name: "🔨 Build storybooks"
run: yarn build-storybook
Expand All @@ -71,11 +73,11 @@ jobs:
steps:
- name: "📥 Checkout code"
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: "💽 Restore node_modules cache"
uses: ./.github/actions/restore
uses: reactgular/cache@main
with:
mode: "restore"

- name: "🔨 Build projects"
run: yarn build

0 comments on commit 9ad3267

Please sign in to comment.