From 19e20a1a111ff7c6dd4294176efc0e7732aa60a8 Mon Sep 17 00:00:00 2001 From: ThisIsBrady Date: Sat, 20 Apr 2024 17:19:11 -0500 Subject: [PATCH] Add workflow to check that project builds --- .github/workflows/build.yml | 44 +++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..ce22e96 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,44 @@ +name: Build + +on: + push: + branches: + - main + pull_request: + branches: + - main + workflow_dispatch: + +permissions: + contents: read + pull-requests: read + packages: read + id-token: write + +jobs: + test: + strategy: + fail-fast: true + matrix: + os: [ubuntu-latest] # Possible values: [ubuntu-latest, windows-latest, macOS-latest] + test: [tsc] + + runs-on: ${{ matrix.os }} + + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + + - name: Install Node.js, NPM and Yarn + uses: actions/setup-node@v4 + with: + node-version: 20 + + - name: Install Dependencies + run: yarn install --frozen-lockfile --network-timeout 300000 + + - name: Build and Run ${{ matrix.test }} + run: | + yarn ${{ matrix.test }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}