registry-sdk/.gitea/workflows/on-pr.yaml
Prathamesh Musale 6251fb6c82
All checks were successful
Lint & Build / lint_and_build (20.x) (pull_request) Successful in 2m11s
Tests / sdk_tests (pull_request) Successful in 20m11s
Install yarn in the on-pr workflow
2024-07-16 12:12:42 +05:30

28 lines
714 B
YAML

name: Lint & Build
on:
pull_request:
jobs:
lint_and_build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v3
- name: Download yarn
run: |
curl -fsSL -o /usr/local/bin/yarn https://github.com/yarnpkg/yarn/releases/download/v1.22.21/yarn-1.22.21.js
chmod +x /usr/local/bin/yarn
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
registry-url: 'https://npm.pkg.github.com'
- run: yarn
- name: Run lint
run: yarn lint
- name: Run build
run: yarn build