Skip to content

Commit

Permalink
ci: added simple github workflow to running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
GarthDB committed Mar 1, 2024
1 parent e17c4a2 commit ab9de59
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 5 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: CI
on: pull_request
jobs:
ci:
name: CI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: moonrepo/setup-moon-action@v1
- run: moon ci
- uses: "moonrepo/run-report-action@v1"
if: success() || failure()
with:
access-token: ${{ secrets.GH_TOKEN }}
8 changes: 4 additions & 4 deletions .moon/toolchain.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# https://moonrepo.dev/docs/config/toolchain
$schema: "https://moonrepo.dev/schemas/toolchain.json"
$schema: 'https://moonrepo.dev/schemas/toolchain.json'

# Extend and inherit an external configuration file. Must be a valid HTTPS URL or file system path.
# extends: './shared/toolchain.yml'
Expand All @@ -10,15 +10,15 @@ $schema: "https://moonrepo.dev/schemas/toolchain.json"
node:
# The version to use. Must be a semantic version that includes major, minor, and patch.
# We suggest using the latest active LTS version: https://nodejs.org/en/about/releases
version: "^20.0.0"
version: '^20.0.0'

# The package manager to use when managing dependencies.
# Accepts "npm" (default), "pnpm", or "yarn".
packageManager: "pnpm"
packageManager: 'pnpm'

# The version of the package manager (above) to use.
pnpm:
version: "8.15.1"
version: '8.15.4'

# Add `node.version` as a constraint in the root `package.json` `engines`.
addEnginesConstraint: true
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,5 @@
"engines": {
"node": "^20.0.0"
},
"packageManager": "[email protected].1"
"packageManager": "[email protected].4"
}

0 comments on commit ab9de59

Please sign in to comment.