diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml new file mode 100644 index 0000000..d664815 --- /dev/null +++ b/.github/workflows/docker-build.yml @@ -0,0 +1,16 @@ +name: Docker build + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + docker: + name: Docker build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Build with Docker + run: docker build . diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..07e77d9 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,23 @@ +name: Lint files + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + lint: + name: Lint files + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Cache node modules + uses: actions/cache@v4 + with: + path: node_modules + key: ${{ runner.OS }}-build-${{ hashFiles('**/package-lock.json') }} + - name: Install dependencies and lint files + run: | + npm ci + npm run lint