From fa2dd244d1326022dc5737f20ae64ddc8dee9ef9 Mon Sep 17 00:00:00 2001 From: Mahmoud Mazouz Date: Tue, 7 May 2024 12:02:43 +0200 Subject: [PATCH] feat: Add basic CI workflow --- .github/workflows/_ci.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 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..48d1526 --- /dev/null +++ b/.github/workflows/_ci.yml @@ -0,0 +1,24 @@ +name: CI + +on: + pull_request_target: + branches: [main] + +jobs: + main: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-node@v4 + with: + node-version-file: .node-version + + - run: npm ci + - run: npm run format:check + - run: npm run lint + - run: npm run test + - run: npm run build + + - name: Check that dist/ is correctly generated + run: git diff --quiet HEAD main -- dist