Update react monorepo to v18 #251
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
# Workflow that is run when a push is made to any branch except master or release. | |
# Runs linter and unit tests. If linting errors are found, attempt to auto-fix them | |
# by pushing a new commit to the feature branch. | |
name: Feature branch workflow | |
on: | |
push: | |
branches-ignore: | |
- master | |
- release* | |
jobs: | |
lint: | |
name: Run linter | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- run: npm ci | |
- name: run linter action | |
uses: wearerequired/lint-action@v2 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
auto_fix: true | |
eslint: true | |
eslint_extensions: ts,tsx | |
prettier: true | |
prettier_extensions: ts,tsx | |
test: | |
name: Run tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- run: npm ci | |
- run: npm run test |