Skip to content

Commit

Permalink
ci: fix working dir (#11)
Browse files Browse the repository at this point in the history
* ci: fix attempt

* change on

* save

* working dir
  • Loading branch information
mPaella authored Dec 6, 2024
1 parent db29673 commit 998a9c5
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
7 changes: 6 additions & 1 deletion .github/actions/pnpm-install/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ inputs:
install-args:
description: "Additional args supplied to 'pnpm install'"
required: false
working-directory:
description: "Working directory to run the command in"
required: false
default: ./typescript

runs:
using: "composite"
Expand All @@ -28,7 +32,7 @@ runs:
echo "PNPM version: ${{ inputs.pnpm-version }}"
echo "Skip install: ${{ inputs.skip-install }}"
echo "Install args: ${{ inputs.install-args }}"
echo "Working directory: ${{ inputs.working-directory }}"
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v4
Expand Down Expand Up @@ -63,4 +67,5 @@ runs:
- name: Install dependencies
shell: bash
if: inputs.skip-install == 'false'
working-directory: ${{ inputs.working-directory }}
run: pnpm install --frozen-lockfile --prefer-offline ${{ inputs.install-args }}
9 changes: 3 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
name: CI

on:
push:
branches:
- main
pull_request:
branches:
- main
push:

jobs:
build-and-test:
Expand All @@ -20,7 +15,9 @@ jobs:
uses: ./.github/actions/pnpm-install

- name: Build all
working-directory: ./typescript
run: pnpm build

- name: Test all
working-directory: ./typescript
run: pnpm test
4 changes: 4 additions & 0 deletions goat.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
"name": "🐐 GOAT",
"path": "."
},
{
"name": "📘 Typescript",
"path": "./typescript"
},
{
"name": "🌋 Core",
"path": "./typescript/packages/core"
Expand Down

0 comments on commit 998a9c5

Please sign in to comment.