Merge pull request #1328 from brave/master #3593
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
# This workflow doesn't produce or publish any artifacts, nor is it involved in the deployment process. | |
# It's here to provide rapid feedback that the committed code is valid: | |
# - dependencies install | |
# - typescript compiles | |
name: Sanity Check | |
on: | |
push: | |
pull_request: | |
branches: [master, prod] | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install pnpm | |
uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d # v3 | |
with: | |
version: 9 | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- name: Use Node.js | |
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3 | |
with: | |
node-version-file: ".node-version" | |
cache: pnpm | |
- run: pnpm install | |
- run: pnpm check | |
- run: pnpm test |