use main branch name from config #48
Workflow file for this run
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: Lint | |
on: | |
push: | |
branches: [ "*" ] | |
pull_request: | |
branches: [ "main" ] | |
permissions: | |
contents: read | |
env: | |
# temporary workaround until move those value to API call or lyra.yml | |
REPO_PATH: "any value" | |
GITHUB_AUTH: "any value" | |
GITHUB_REPO: "any value" | |
GITHUB_OWNER: "any value" | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./webapp | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18.x | |
cache: 'yarn' | |
cache-dependency-path: ./webapp/yarn.lock | |
- run: yarn | |
- run: yarn lint | |
- run: yarn build | |
- run: yarn test |