From eaac07a360ec903f4fd05b233d8c1df679960eb9 Mon Sep 17 00:00:00 2001 From: Ryan Waskiewicz Date: Fri, 29 Mar 2024 10:25:17 -0400 Subject: [PATCH] chore(ci): add a basic ci workflow --- .github/workflows/main.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..ed79e03 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,25 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + - uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 + with: + node-version-file: 'package.json' + cache: 'npm' + - name: Install dependencies + run: npm ci + - name: Run Format Check + run: prettier.dry-run + - name: Build project + run: npm run build + - name: Run Tests + run: npm test -- --no-watch \ No newline at end of file