diff --git a/.gitea/workflows/lint-and-build.yml b/.gitea/workflows/lint-and-build.yml new file mode 100644 index 0000000..5d4546c --- /dev/null +++ b/.gitea/workflows/lint-and-build.yml @@ -0,0 +1,33 @@ +name: Lint and Build + +on: + push: + 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 }} + + - name: Install dependencies + run: yarn install --frozen-lockfile + + - name: Run lint + run: yarn lint + + - name: Run build + run: yarn build