Skip to content

Commit

Permalink
bugfix github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
bbbbbbbbbbbbba committed Feb 18, 2024
1 parent 004d532 commit 46ac4c7
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 12 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/bbs-go-admin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,21 @@ jobs:
node-version: [20.x]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v3
with:
version: 8
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
# cache: "npm"
cache: "pnpm"
# cache-dependency-path: admin/package-lock.json
- name: pnpm install, build, and test
- name: Install dependencies
working-directory: ./admin
run: |
pnpm install
- name: Build
working-directory: ./admin
run: |
pnpm build
6 changes: 3 additions & 3 deletions .github/workflows/bbs-go-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ jobs:
with:
go-version: 1.21

- name: Get dependencies
- name: Install dependencies
working-directory: ./server
run: |
cd server
go mod download
- name: Build
working-directory: ./server
run: |
go build -v .
make build
16 changes: 11 additions & 5 deletions .github/workflows/bbs-go-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,21 @@ jobs:
node-version: [ 20.x ]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v3
with:
version: 8
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
# cache: 'npm'
cache: "pnpm"
# cache-dependency-path: site/package-lock.json
- name: pnpm install, build, and test
- name: Install dependencies
working-directory: ./site
run: |
pnpm install
pnpm build
- name: Build
working-directory: ./site
run: |
pnpm build

0 comments on commit 46ac4c7

Please sign in to comment.