ci: usage of GitHub Actions #1
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: "ci" | |
on: | |
push: | |
branches: [develop] | |
pull_request: | |
branches: [main, develop, staging] | |
jobs: | |
ci: | |
runs-on: "ubuntu-latest" | |
steps: | |
- uses: "actions/[email protected]" | |
- uses: "pnpm/[email protected]" | |
- name: "Setup Node.js" | |
uses: "actions/[email protected]" | |
with: | |
node-version: "20.x" | |
cache: "npm" | |
- run: "npm clean-install" | |
- run: "npm run expo:typed-routes" | |
- run: 'echo "${CI_COMMIT_MESSAGE}" | npm run lint:commit' | |
- run: "npm run lint:prettier" | |
- run: "npm run lint:eslint" | |
- run: "npm run lint:typescript" | |
- run: "npm run test" |