Skip to content

Commit

Permalink
Merge pull request #11 from joshraphael/issue-9
Browse files Browse the repository at this point in the history
issue-9 -- Add AutoCR to CI/CD
  • Loading branch information
joshraphael authored Jan 24, 2025
2 parents ab2fdbb + b340ab9 commit 67e4699
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 36 deletions.
2 changes: 1 addition & 1 deletion .github/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ module ra-code-notes

go 1.23.0

require github.com/joshraphael/go-retroachievements v1.0.0
require github.com/joshraphael/go-retroachievements v1.0.1
4 changes: 2 additions & 2 deletions .github/go.sum
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
github.com/joshraphael/go-retroachievements v1.0.0 h1:Hu1bitG8r9O8AZWx7BfGOyVo9Sga3phxQBq0b8Q/3vQ=
github.com/joshraphael/go-retroachievements v1.0.0/go.mod h1:C+9vQbOqyRJmnFt8XIJ5gwRot+AZS/acnaESp45jtCc=
github.com/joshraphael/go-retroachievements v1.0.1 h1:fhH9y8VIBSDhAumvBVEqsCkJXQ+C/pgdq5aMHNJ2vBY=
github.com/joshraphael/go-retroachievements v1.0.1/go.mod h1:C+9vQbOqyRJmnFt8XIJ5gwRot+AZS/acnaESp45jtCc=
2 changes: 1 addition & 1 deletion .github/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
func main() {
client := retroachievements.New(retroachievements.ClientConfig{
Host: retroachievements.RetroAchievementHost,
UserAgent: "go-retroachievements/v1.0.0",
UserAgent: "go-retroachievements/v1.0.1",
})
notes, err := client.GetCodeNotes(models.GetCodeNotesParameters{
GameID: 4111,
Expand Down
31 changes: 0 additions & 31 deletions .github/workflows/autocr.yaml

This file was deleted.

37 changes: 36 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,39 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: rich-text
path: ${{env.RALIBRETRO_DIR}}/RACache/Data/4111-Rich.txt
path: ${{env.RALIBRETRO_DIR}}/RACache/Data/4111-Rich.txt

autocr:
name: AutoCR
needs: compile
runs-on: ubuntu-latest
env:
GAME_ID: 4111
steps:
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'

- name: Checkout tools repo
uses: actions/checkout@v4
with:
repository: joshraphael/autocr-cli

- name: Download Code Notes
uses: actions/download-artifact@v4
with:
name: notes-json

- name: Download Achievement and Leaderboard Code
uses: actions/download-artifact@v4
with:
name: user-text

- name: Download Rich Presence
uses: actions/download-artifact@v4
with:
name: rich-text

- name: Run AutoCR
run: ./index.js --notes ${{env.GAME_ID}}-Notes.json --user ${{env.GAME_ID}}-User.txt --rich ${{env.GAME_ID}}-Rich.txt --severity error

0 comments on commit 67e4699

Please sign in to comment.