Migrate code to Typescript and eslint flat config #155
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docker | |
on: | |
- push | |
- pull_request | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 22 | |
- name: Install project (clean slate) | |
run: npm ci | |
- name: Lint code | |
run: npm run lint | |
- name: Test code | |
run: npm run test | |
build: | |
runs-on: ubuntu-latest | |
needs: | |
- test | |
steps: | |
- name: Build and push Docker image | |
uses: docker/build-push-action@v4 |