Download react-use/.github/workflows/check-codebase.yml from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 1.85 kB
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/react-use/.github/workflows/check-codebase.yml
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/react-use/.github/workflows/check-codebase.yml
-
curl -L -o check-codebase.yml https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/react-use/.github/workflows/check-codebase.yml
1.85 kB
| name: Check codebase | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v2 | |
| - name: Setup node | |
| uses: actions/setup-node@v1 | |
| with: | |
| node-version: 20 | |
| - name: Install dependencies | |
| run: yarn install --frozen-lockfile | |
| - name: Run build | |
| run: yarn build | |
| # storybook: | |
| # name: Storybook | |
| # runs-on: ubuntu-latest | |
| # steps: | |
| # - name: Check out repository | |
| # uses: actions/checkout@v2 | |
| # - name: Setup node | |
| # uses: actions/setup-node@v1 | |
| # with: | |
| # node-version: 20 | |
| # - name: Install dependencies | |
| # run: yarn install --frozen-lockfile | |
| # - name: Run build:storybook | |
| # run: yarn storybook:build | |
| lint: | |
| name: Linting | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v2 | |
| - name: Setup node | |
| uses: actions/setup-node@v1 | |
| with: | |
| node-version: 20 | |
| - name: Install dependencies | |
| run: yarn install --frozen-lockfile | |
| - name: Lint with ESLint | |
| run: yarn lint | |
| - name: Lint with TSC | |
| if: ${{ always() }} | |
| run: yarn lint:types | |
| unit-tests: | |
| name: Unit tests | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [macos-latest, ubuntu-latest] | |
| node: [20, 22] | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v2 | |
| - name: Setup node | |
| uses: actions/setup-node@v1 | |
| with: | |
| node-version: ${{ matrix.node }} | |
| - name: Install dependencies | |
| run: yarn install --frozen-lockfile | |
| - name: Run unit tests | |
| run: yarn test | |