diff --git a/.github/workflows/bbs-go-admin.yml b/.github/workflows/bbs-go-admin.yml index ce2de9e0d..5d5545703 100644 --- a/.github/workflows/bbs-go-admin.yml +++ b/.github/workflows/bbs-go-admin.yml @@ -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 diff --git a/.github/workflows/bbs-go-server.yml b/.github/workflows/bbs-go-server.yml index eaa977c97..7806d84cb 100644 --- a/.github/workflows/bbs-go-server.yml +++ b/.github/workflows/bbs-go-server.yml @@ -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 diff --git a/.github/workflows/bbs-go-site.yml b/.github/workflows/bbs-go-site.yml index 8a64062c2..b4b354f14 100644 --- a/.github/workflows/bbs-go-site.yml +++ b/.github/workflows/bbs-go-site.yml @@ -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 \ No newline at end of file