diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 68e1cb5..061aaff 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,6 +9,27 @@ on: types: [submitted] jobs: + frontend-lint: + runs-on: buildjet-4vcpu-ubuntu-2204 + name: Lint + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: v21.1.0 + cache: "npm" + cache-dependency-path: "ui/package-lock.json" + - name: Install dependencies + run: | + cd ui + npm ci + - name: Lint frontend + run: | + cd ui + npm run lint + build: runs-on: buildjet-4vcpu-ubuntu-2204 name: Build @@ -19,12 +40,12 @@ jobs: uses: actions/setup-node@v4 with: node-version: v21.1.0 - cache: 'npm' - cache-dependency-path: '**/package-lock.json' + cache: "npm" + cache-dependency-path: "**/package-lock.json" - name: Set up Golang uses: actions/setup-go@v4 with: - go-version: '1.24.0' + go-version: "1.24.0" - name: Build frontend run: | make frontend