Skip to content

Commit

Permalink
feat: upgrade workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
a11rew committed Nov 10, 2024
1 parent 925b521 commit ebac85b
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 70 deletions.
31 changes: 0 additions & 31 deletions .github/workflows/dependabot-lock-file.yml

This file was deleted.

68 changes: 35 additions & 33 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,25 @@ on:
branches: [main]

jobs:
packages:
name: Build & Lint
plugin:
name: Build & Lint Plugin
runs-on: ubuntu-latest
defaults:
run:
working-directory: packages/plugin
steps:
- name: Checkout Repo
uses: actions/checkout@v3

- name: Setup PNPM
uses: pnpm/action-setup@v2
with:
version: 8.6.11
version: 9

- name: Setup Node.js 18
- name: Setup Node.js 20
uses: actions/setup-node@v3
with:
node-version: 18
node-version: 20
cache: "pnpm"

- name: Install Dependencies
Expand All @@ -32,39 +35,38 @@ jobs:
run: pnpm run build
env:
NODE_ENV: production
NEXT_PUBLIC_PAYSTACK_PUBLIC_KEY: ci

- name: Lint
run: pnpm run lint

examples:
name: Build & Lint Examples
runs-on: ubuntu-latest
strategy:
matrix:
directory: [examples/storefront]
defaults:
run:
working-directory: ${{ matrix.directory }}
steps:
- name: Checkout Repo
uses: actions/checkout@v3
# examples-storefront:
# name: Build & Lint Example Storefront
# runs-on: ubuntu-latest
# strategy:
# matrix:
# directory: [examples/storefront, examples/backend]
# defaults:
# run:
# working-directory: ${{ matrix.directory }}
# steps:
# - name: Checkout Repo
# uses: actions/checkout@v3

- name: Setup Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18
cache: "yarn"
cache-dependency-path: ${{ matrix.directory }}/yarn.lock
# - name: Setup Node.js 18
# uses: actions/setup-node@v3
# with:
# node-version: 18
# cache: "yarn"
# cache-dependency-path: ${{ matrix.directory }}/yarn.lock

- name: Install Dependencies
run: yarn install --frozen-lockfile
# - name: Install Dependencies
# run: yarn install --frozen-lockfile

- name: Build
run: yarn next experimental-compile # Skip static page generation
env:
NODE_ENV: production
NEXT_PUBLIC_PAYSTACK_PUBLIC_KEY: ci
# - name: Build
# run: yarn next experimental-compile # Skip static page generation
# env:
# NODE_ENV: production
# NEXT_PUBLIC_PAYSTACK_PUBLIC_KEY: ci

- name: Lint
run: yarn lint
# - name: Lint
# run: yarn lint
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ jobs:
- name: Setup PNPM
uses: pnpm/action-setup@v2
with:
version: 8.6.11
version: 9

- name: Setup Node.js 18
- name: Setup Node.js 20
uses: actions/setup-node@v3
with:
node-version: 18
node-version: 20
cache: "pnpm"

- name: Install Dependencies
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ jobs:
- name: Setup PNPM
uses: pnpm/action-setup@v2
with:
version: 8.6.11
version: 9

- name: Setup Node.js 18
- name: Setup Node.js 20
uses: actions/setup-node@v3
with:
node-version: 18
node-version: 20
cache: "pnpm"

- name: Install Dependencies
Expand Down

0 comments on commit ebac85b

Please sign in to comment.