From 9333d8bd3a1a468867a6f382044448e385e139e5 Mon Sep 17 00:00:00 2001 From: Victor Bruce Date: Wed, 26 Feb 2025 23:53:34 +0000 Subject: [PATCH 1/2] ci: setup ci using github actions --- .github/workflows/ci.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 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..76febea --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,26 @@ +name: CI + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Install dependencies + run: npm install + + - name: Run build + run: npm run build --if-present + + - name: Run tests + run: npm run test \ No newline at end of file From d211aecf6715d965d5b7ef355defac826cc9fcf8 Mon Sep 17 00:00:00 2001 From: Victor Bruce Date: Wed, 26 Feb 2025 23:55:57 +0000 Subject: [PATCH 2/2] fix: ci workflow error --- .github/workflows/ci.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 76febea..e405700 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,8 +19,5 @@ jobs: - name: Install dependencies run: npm install - - name: Run build - run: npm run build --if-present - - name: Run tests run: npm run test \ No newline at end of file