Skip to content

Commit

Permalink
Add workflow to check that project builds
Browse files Browse the repository at this point in the history
  • Loading branch information
ThisIsBrady committed Apr 20, 2024
1 parent bb539b2 commit 19e20a1
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit 19e20a1

Please sign in to comment.