Skip to content

Commit

Permalink
chore: remove quicktype installation no longer needed
Browse files Browse the repository at this point in the history
  • Loading branch information
bdeneux committed Aug 5, 2024
1 parent 5a792ee commit a1f86c8
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 23 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,6 @@ jobs:
- name: Install Mage
run: go install github.com/magefile/[email protected]

- name: Installing quicktype
run: |
yarn global add quicktype@23
echo "$(yarn global bin)" >> $GITHUB_PATH
- name: Build
run: |
mage -v build:${{ matrix.target }} ${{ matrix.schema }}
5 changes: 0 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,6 @@ jobs:
- name: Install Mage
run: go install github.com/magefile/[email protected]

- name: Installing quicktype
run: |
yarn global add quicktype@23
echo "$(yarn global bin)" >> $GITHUB_PATH
- name: Publish
run: |
mage -v publish:ts ${{ matrix.schema }} $GITHUB_REF
Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/update-schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,6 @@ jobs:
- name: Install Mage
run: go install github.com/magefile/[email protected]

- name: Installing quicktype
run: |
yarn global add quicktype@23
echo "$(yarn global bin)" >> $GITHUB_PATH
- name: Build
run: |
mage -v build:${{ matrix.target }} ${{ matrix.schema }}
Expand Down
9 changes: 1 addition & 8 deletions magefiles/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,6 @@ func ensureTsCodegen() {
}
}

// EnsureQuicktype ensures that quicktype is installed, if not it panics.
func ensureQuicktype() {
if err := sh.Run("quicktype", "--help"); err != nil {
panic("quicktype is not installed")
}
}

// EnsureYarn ensures that yarn is installed, if not it panics.
func ensureYarn() {
if err := sh.Run("yarn", "--help"); err != nil {
Expand All @@ -146,7 +139,7 @@ func ensureGoCodegen() {
}

fmt.Printf("🔨 Installing go-codegen...\n")
if err := sh.Run("go", "install", "github.com/srdtrk/go-codegen@0.2.5"); err != nil {
if err := sh.Run("go", "install", "github.com/srdtrk/go-codegen@v0.2.5"); err != nil {
panic(fmt.Sprintf("failed to install go-codegen: %v", err))
}
}

0 comments on commit a1f86c8

Please sign in to comment.