Build on push to any branch except main #183
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: Push to any | |
run-name: Build on push to any branch except main | |
on: | |
push: | |
branches-ignore: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 2 | |
- name: Install Node.js v20.10 | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '20.10' | |
- name: Install TurboRepo CLI | |
run: yarn global add turbo | |
- name: Lint, Build, and Test | |
run: | | |
yarn | |
# yarn workspaces foreach --verbose --since --no-private info | |
# yarn workspaces info | |
# yarn workspaces foreach install | |
# turbo run lint --filter="...[HEAD^1]" | |
# turbo run build --filter="...[HEAD^1]" | |
turbo run lint | |
# turbo run build | |
# turbo run test --filter=...[origin/main] | |