Skip to content

Commit

Permalink
initiated github CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
nxmatic committed Jan 16, 2024
1 parent e51c557 commit 7db9d62
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: CI Build

on:
pull_request:

push:
branches:
- 'master'
- 'develop' # gitflow mainly on hosted runner

workflow_dispatch:
inputs:
ref:
description: git tag reference to build
required: true
type: string

workflow_call:
inputs:
ref:
description: git tag reference to build
required: true
type: string

jobs:
deploy:
runs-on:
- ${{ github.repository_owner != github.actor && 'ubuntu-latest' || 'self-hosted' }}

steps:

- name: Checkout Commit
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'

- name: Install pnpm
run: |
corepack enable
corepack prepare pnpm@next-8 --activate
- name: Install dependencies
run: pnpm install

- name: Build
run: pnpm build

- name: Build
run: pnpm run test
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20

0 comments on commit 7db9d62

Please sign in to comment.