0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-01-06 20:40:08 -05:00
logto/.github/workflows/core-main.yml

43 lines
1,013 B
YAML
Raw Normal View History

2021-07-25 12:35:39 -05:00
name: Core
on:
push:
branches: [ master ]
2021-08-10 10:19:34 -05:00
paths: [ 'packages/core/**', 'packages/phrases/**', 'packages/schemas/**' ]
2021-07-25 12:35:39 -05:00
pull_request:
branches: [ master ]
2021-08-10 10:19:34 -05:00
paths: [ 'packages/core/**', 'packages/phrases/**', 'packages/schemas/**' ]
2021-07-25 12:35:39 -05:00
jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
2021-07-29 04:46:28 -05:00
- uses: actions/setup-node@v2
with:
node-version: '14'
2021-07-25 12:35:39 -05:00
2021-07-29 04:46:28 -05:00
# https://github.com/pnpm/action-setup#use-cache-to-reduce-installation-time
- name: Cache pnpm modules
uses: actions/cache@v2
2021-07-25 12:35:39 -05:00
with:
2021-07-29 04:46:28 -05:00
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
2021-07-25 12:35:39 -05:00
restore-keys: |
2021-07-29 04:46:28 -05:00
${{ runner.os }}-
- uses: pnpm/action-setup@v2.0.1
with:
version: 6.0.2
run_install: true
2021-07-25 12:35:39 -05:00
- name: Lint
working-directory: packages/core
2021-07-29 04:46:28 -05:00
run: pnpm lint
2021-07-25 12:35:39 -05:00
- name: Build
working-directory: packages/core
2021-07-29 04:46:28 -05:00
run: pnpm build