From 16cd89031aa4cfabf9ba44e9c3ac2dbf6f4d0fbe Mon Sep 17 00:00:00 2001 From: MartinFillon Date: Mon, 17 Mar 2025 15:47:39 +0100 Subject: [PATCH 1/2] ci: add basic ci using bun instead of pnpm --- .github/workflows/tests.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..13d905c --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,37 @@ +name: Tests + +on: + pull_request: + branches: + - master + - dev + workflow_dispatch: + +env: + EM_CACHE_FOLDER: "emsdk-cache" + +jobs: + tests: + runs-on: ubuntu-latest + steps: + - name: "Checkout" + uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: "Setup node" + uses: actions/setup-node@v2 + with: + node-version: "23.6.0" + + - name: "Setup bun" + uses: oven-sh/setup-bun@v2 + + - name: "Install dependencies" + run: bun install + + - name: "Run tests" + run: bun lerna run test:unit + + - name: "Run linter" + run: bun lerna run lint From 621be416370762cded9f477d5bd8755fae5d9cc4 Mon Sep 17 00:00:00 2001 From: MartinFillon Date: Mon, 17 Mar 2025 16:06:33 +0100 Subject: [PATCH 2/2] ci: branch was named master instead of main --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 13d905c..8f93744 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -3,7 +3,7 @@ name: Tests on: pull_request: branches: - - master + - main - dev workflow_dispatch: