chore(odopt): sync commits to open source packages from dopt #1546
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: odopt-ci | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
type: | |
- opened | |
- synchronize | |
- reopened | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
concurrency: | |
group: ${{ github.ref }}-odopt-test | |
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v3 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v2.4.0 | |
- name: Read .nvmrc | |
id: node_version | |
run: echo NODE_VERSION=$(cat .nvmrc) >> $GITHUB_OUTPUT | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ steps.node_version.outputs.NODE_VERSION }} | |
cache: "pnpm" | |
- name: Restore Turbo Cache | |
id: turbo-cache | |
uses: actions/cache@v3 | |
with: | |
path: node_modules/.cache/turbo | |
key: turbo-${{ github.job }}-${{ github.ref_name }}-${{ github.sha }} | |
restore-keys: | | |
turbo-${{ github.job }}-${{ github.ref_name }}- | |
- name: Install dependencies | |
run: | | |
make install; | |
- name: Build monorepo | |
run: | | |
make build; |