diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..c283edd --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,26 @@ +name: Build + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Initialize and update submodules + run: | + git submodule update --init --recursive + + - name: Use Node.js + uses: actions/setup-node@v3 + with: + node-version: 18 + cache: "npm" + + - name: Install dependencies + run: npm ci + + - name: Build project + run: npm run build diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml new file mode 100644 index 0000000..c9b566c --- /dev/null +++ b/.github/workflows/lint.yaml @@ -0,0 +1,14 @@ +name: Lint + +on: [push] + +jobs: + ESLint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Install ESLint + run: | + npm install eslint + - name: Run ESLint + run: npm run lint