Skip to content

Commit

Permalink
ci: add branches
Browse files Browse the repository at this point in the history
  • Loading branch information
tmm committed Apr 5, 2022
1 parent 775aec2 commit a72c75e
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Main
on:
pull_request:
push:
branches: [main]
branches: [main, next, v*]

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
Expand All @@ -27,6 +27,19 @@ jobs:
with:
cache: 'pnpm'
node-version: ${{ matrix.node-version }}
- name: Cache pnpm
uses: actions/cache@v3
with:
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
restore-keys: npm-
- name: Cache node_modules
uses: actions/cache@v3
id: cache-node-modules
with:
path: |
node_modules
packages/*/node_modules
key: modules-${{ hashFiles('pnpm-lock.yaml') }}
- name: Install Dependencies
run: pnpm i

Expand All @@ -48,6 +61,13 @@ jobs:
with:
cache: 'pnpm'
node-version: ${{ matrix.node-version }}
- name: Cache node_modules
uses: actions/cache@v3
with:
path: |
node_modules
packages/*/node_modules
key: modules-${{ hashFiles('pnpm-lock.yaml') }}
- name: Lint code
run: pnpm lint
- name: Check types
Expand Down

0 comments on commit a72c75e

Please sign in to comment.