From 620349c8aca4c29faebe1dbe6c4fe500ca58cc9c Mon Sep 17 00:00:00 2001 From: "James Morris, MS" <96435344+james-a-morris@users.noreply.github.com> Date: Fri, 4 Oct 2024 10:04:55 -0400 Subject: [PATCH] feat(CI): add github actions to confirm a PR builds/tests/formats (#54) Signed-off-by: james-a-morris --- .github/workflows/ci.yml | 76 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 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 00000000..072012bf --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,76 @@ +name: CI + +on: + push: + branches: + - master + pull_request: + +jobs: + test: + name: Test + timeout-minutes: 15 + runs-on: ubuntu-latest + steps: + - name: Check out code + uses: actions/checkout@v4 + with: + fetch-depth: 4 + - uses: pnpm/action-setup@v3 + with: + version: 9 + - name: Setup Node.js environment + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: 'pnpm' + - name: Install dependencies + run: pnpm install + - name: Build + run: pnpm build + - name: Test + run: pnpm test + build: + name: Build + timeout-minutes: 15 + runs-on: ubuntu-latest + steps: + - name: Check out code + uses: actions/checkout@v4 + with: + fetch-depth: 4 + - uses: pnpm/action-setup@v3 + with: + version: 9 + - name: Setup Node.js environment + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: 'pnpm' + - name: Install dependencies + run: pnpm install + - name: Build + run: pnpm build + lint-check: + name: Lint check + timeout-minutes: 15 + runs-on: ubuntu-latest + steps: + - name: Check out code + uses: actions/checkout@v4 + with: + fetch-depth: 4 + - uses: pnpm/action-setup@v3 + with: + version: 9 + - name: Setup Node.js environment + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: 'pnpm' + - name: Install dependencies + run: pnpm install + - name: Build + run: pnpm build + - name: Lint check + run: pnpm check