Skip to content

Commit

Permalink
Add build step that runs on every PR to verify things work (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
geekflyer authored Apr 24, 2023
1 parent 17f6e96 commit 41c96c7
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 16 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Build

on:
push:
branches:
- main
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
name: Build
runs-on: ubuntu-latest

steps:
- name: Checkout Repo
uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version-file: .node-version

- uses: pnpm/action-setup@v2
with:
version: 7

- name: Install global dependencies
run: pnpm install --frozen-lockfile

- name: Build global project
run: pnpm run build
10 changes: 2 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,19 @@ jobs:
name: Build
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16.x]

steps:
- name: Checkout Repo
uses: actions/checkout@v3

- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
node-version-file: .node-version

- uses: pnpm/action-setup@v2
name: Install pnpm
id: pnpm-install
with:
version: 7
run_install: false

- name: Install global dependencies
run: pnpm install --frozen-lockfile
Expand Down
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v16.14.0
16 changes: 8 additions & 8 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 41c96c7

Please sign in to comment.