Skip to content

Commit

Permalink
better ci
Browse files Browse the repository at this point in the history
  • Loading branch information
timbrinded committed Jul 14, 2023
1 parent ec9961a commit 0c70af6
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 6 deletions.
7 changes: 7 additions & 0 deletions .changeset/cool-seahorses-ring.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@moonwall/types": patch
"@moonwall/util": patch
"@moonwall/cli": patch
---

Better CI
34 changes: 28 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,26 +15,48 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 18.x
cache: "pnpm"
- name: Get pnpm cache directory path
id: pnpm-cache-dir-path
run: echo "::set-output name=dir::$(pnpm store path)"
- uses: actions/cache@v2
id: pnpm-cache
with:
path: ${{ steps.pnpm-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
- run: pnpm install --frozen-lockfile
- run: pnpm run lint && pnpm run build
- uses: actions/upload-artifact@v2
with:
name: dist
path: ./dist

test_basic:
runs-on: ubuntu-latest
needs: ["build"]
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v2
with:
name: dist
path: ./dist
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v3
with:
node-version: 18.x
cache: "pnpm"
- name: Build like before
run: |
pnpm install --frozen-lockfile
pnpm run lint && pnpm run build
- name: Get pnpm cache directory path
id: pnpm-cache-dir-path
run: echo "::set-output name=dir::$(pnpm store path)"
- uses: actions/cache@v2
id: pnpm-cache
with:
path: ${{ steps.pnpm-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
- name: Run standard dev test
run: pnpm moonwall test basic

Expand Down

0 comments on commit 0c70af6

Please sign in to comment.