Match API for comparing strings in Graphemes API #50
Workflow file for this run
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: Test graphemes-api | |
| # Limit GITHUB_TOKEN permissions to only read repo contents. | |
| permissions: | |
| contents: read | |
| on: | |
| pull_request: | |
| paths: | |
| - graphemes-api/** | |
| workflow_dispatch: | |
| # Cancel any currently running builds to save GitHub Actions hours. | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test-suite: | |
| name: Test suite | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: ./graphemes-api | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Read .nvmrc | |
| run: echo "GITHUB_NVMRC_VERSION=$(cat .nvmrc)" >> $GITHUB_ENV | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ env.GITHUB_NVMRC_VERSION }} | |
| - name: Install dependencies | |
| run: npm install | |
| # Lint errors cause this job to fail. | |
| - name: Run lint script | |
| run: npm run lint | |
| # Test failures cause this job to fail. | |
| - name: Run test script | |
| run: npm run test | |
| # Build failures cause this job to fail. | |
| # We don't care about keeping the artifact of this build, | |
| # just that it can complete. | |
| - name: Run build script | |
| run: npm run build |