Skip to content

Commit

Permalink
Update github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
apteryxxyz committed Jun 30, 2024
1 parent 0fc99e7 commit 2eda85a
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 105 deletions.
85 changes: 0 additions & 85 deletions .github/workflows/continuous-delivery.yml

This file was deleted.

64 changes: 44 additions & 20 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,49 +11,73 @@ jobs:
name: Linting
runs-on: ubuntu-latest
steps:
- name: Checkout project
- name: Checkout
uses: actions/checkout@v3

- name: Setup Node.js
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'yarn'

- name: Cache dependencies
uses: actions/cache@v3
- uses: pnpm/action-setup@v3
name: Install pnpm
with:
path: ~/.yarn
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
version: 8
run_install: false

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: yarn install
run: pnpm install

- name: Run ESLint
run: yarn lint
- name: Run Linter
run: pnpm lint

build:
name: Building
needs: lint
runs-on: ubuntu-latest
steps:
- name: Checkout project
- name: Checkout
uses: actions/checkout@v3

- name: Setup Node.js
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'yarn'

- name: Cache dependencies
uses: actions/cache@v3
- uses: pnpm/action-setup@v3
name: Install pnpm
with:
version: 8
run_install: false

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ~/.yarn
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: yarn install
run: pnpm install

- name: Compile code
run: yarn build
- name: Build project
run: pnpm build

0 comments on commit 2eda85a

Please sign in to comment.