From 96af035d49ac520a1cfaf442f3493ee75fd14bc1 Mon Sep 17 00:00:00 2001 From: Simon Kleber <59203249+sikleber@users.noreply.github.com> Date: Sun, 21 Apr 2024 18:57:14 +0200 Subject: [PATCH] Create ci workflow --- .github/workflows/ci.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..9713660 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,34 @@ +name: CI + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + test-frontend: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Setup Node.js + uses: actions/setup-node@v3 + with: + node-version: 20 + + - name: Install + run: npm install + + - name: Lint + run: npm run lint + + - name: Format check + run: npm run format:check + + - name: Test + run: npm run test + + - name: Build + run: npm run build