diff --git a/.github/workflows/lint-and-build.yml b/.github/workflows/lint-and-build.yml new file mode 100644 index 0000000..10b2028 --- /dev/null +++ b/.github/workflows/lint-and-build.yml @@ -0,0 +1,36 @@ +name: Lint and Build + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + lint-and-build: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [18.x] + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + cache: 'yarn' + + - name: Install dependencies + run: yarn install --frozen-lockfile + + - name: Run lint + run: yarn lint + + - name: Run build + run: yarn build