From bec7af2eec586f7773cee031ccdc5765cb54152f Mon Sep 17 00:00:00 2001 From: Arthur Fiorette Date: Mon, 18 Sep 2023 17:32:52 -0300 Subject: [PATCH] Create ci.yml --- .github/workflows/ci.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 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..645ea96 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,33 @@ +name: Code CI + +on: + push: + pull_request: + +jobs: + build: + name: Build and test code + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup bun + uses: oven-sh/setup-bun@v1 + with: + bun-version: latest + + - name: Setup node and restore cached dependencies + uses: actions/setup-node@v3 + with: + node-version: '20' + + - name: Install packages + run: bun install + + - name: Build code + run: bun run build + + - name: Test + run: bun run test