Basic ETF Creation (#8) #94
This file contains hidden or 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: All | |
| on: | |
| # Run on all changes to these branches | |
| push: | |
| branches: | |
| - main | |
| - develop | |
| # Run only if PR exists | |
| pull_request: | |
| types: [assigned, opened, synchronize, reopened] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| TURBO_TEAM: ${{ vars.TURBO_TEAM }} | |
| TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
| PNPM_VERSION: 9.12.2 | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| ### Build ### | |
| # Git Checkout | |
| - uses: actions/checkout@v3 | |
| with: | |
| submodules: true | |
| # Node Setup | |
| - uses: actions/setup-node@v3 | |
| with: | |
| node-version: "22.19" | |
| # PNPM Setup | |
| - uses: pnpm/action-setup@v2.0.1 | |
| name: Install pnpm | |
| id: pnpm-install | |
| with: | |
| version: ${{env.PNPM_VERSION}} | |
| run_install: false | |
| # Get pnpm store directory | |
| - name: Set pnpm store directory | |
| if: ${{ !env.ACT }} | |
| id: pnpm-cache | |
| run: | | |
| echo "::set-output name=pnpm_cache_dir::$(pnpm store path)" | |
| # Setup pnpm cache | |
| - uses: actions/cache@v3 | |
| if: ${{ !env.ACT }} | |
| name: Setup pnpm cache | |
| with: | |
| path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }} | |
| key: ${{ runner.os }}-pnpm-${{env.PNPM_VERSION}}-store-${{ hashFiles('**/pnpm-lock.yaml') }} | |
| restore-keys: | | |
| ${{ runner.os }}-pnpm-${{env.PNPM_VERSION}}-store- | |
| # Install | |
| - run: pnpm i | |
| name: Install dependencies | |
| # Dependencies | |
| - run: pnpm run depcheck | |
| name: Dependency Check | |
| - run: pnpm run syncpack | |
| name: Dependency Synced Versioning Check | |
| - run: pnpm run madge | |
| name: Circular dependency check | |
| # Build | |
| - run: pnpm run build | |
| name: Build All | |
| # Test | |
| # TODO: enable tests later | |
| # - run: pnpm run test | |
| # name: Test All | |
| ### Final Checks ### | |
| # Lint | |
| - run: pnpm run lint | |
| name: Lint All | |
| ### Release ### | |
| #- if: ${{ github.ref == 'refs/heads/main' }} | |
| # name: Set publishing config | |
| # run: pnpm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}" | |
| # env: | |
| # NPM_TOKEN: ${{secrets.NPM_TOKEN}} | |
| ## Create Release PR | |
| #- if: ${{ github.ref == 'refs/heads/main' }} | |
| # name: Create and publish versions | |
| # uses: changesets/action@v1 | |
| # with: | |
| # version: pnpm ci:version | |
| # commit: "chore: update versions" | |
| # title: "chore: update versions" | |
| # publish: pnpm ci:publish | |
| # env: | |
| # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |