From f470e0c18b687e956c8cae5f51fb64ab9ddaab0f Mon Sep 17 00:00:00 2001 From: Victoria <68347113+Victoria-DR@users.noreply.github.com> Date: Sat, 28 Dec 2024 00:45:00 -0500 Subject: [PATCH 1/2] Add 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..3bafe9d --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,24 @@ +name: CI + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Use Node.js + uses: actions/setup-node@v4 + with: + node-version-file: .nvmrc + cache: 'npm' + + - name: Compile TypeScript + run: npx tsc --build From af5618e68728f89bdc9a18710f909e84de2500dc Mon Sep 17 00:00:00 2001 From: Victoria <68347113+Victoria-DR@users.noreply.github.com> Date: Sat, 28 Dec 2024 00:48:32 -0500 Subject: [PATCH 2/2] Fix --- .github/workflows/ci.yml | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3bafe9d..89eb44b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,23 +2,26 @@ name: CI on: push: - branches: [ "main" ] + branches: ["main"] pull_request: - branches: [ "main" ] + branches: ["main"] jobs: build: runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Use Node.js - uses: actions/setup-node@v4 - with: - node-version-file: .nvmrc - cache: 'npm' - - - name: Compile TypeScript - run: npx tsc --build + - name: Checkout + uses: actions/checkout@v4 + + - name: Use Node.js + uses: actions/setup-node@v4 + with: + node-version-file: .nvmrc + cache: "npm" + + - name: Install dependencies + run: npm ci + + - name: Compile TypeScript + run: npx tsc --build