fix samples #744
This file contains hidden or 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: Build and lint | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - master | |
| schedule: | |
| - cron: "0 3 * * 0" # Every sunday at 3am UTC. | |
| jobs: | |
| validation: | |
| name: Code quality | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Corepack | |
| run: corepack enable | |
| - name: Install | |
| run: yarn | |
| - name: Linting | |
| run: yarn lint | |
| - name: Build on Ubuntu | |
| run: yarn build | |
| - name: All generated code is commited | |
| run: | | |
| git update-index --refresh | |
| git diff-index --exit-code --name-status HEAD -- | |
| build: | |
| name: Build | |
| strategy: | |
| fail-fast: true | |
| matrix: | |
| os: [ ubuntu-latest, macos-latest, windows-latest ] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: .github/files/.nvmrc | |
| - name: NodeJS version | |
| run: node -v | |
| - name: Corepack | |
| run: corepack enable | |
| - name: Yarn version | |
| run: yarn --version | |
| - name: Install | |
| run: yarn | |
| - name: Build | |
| run: yarn build |