Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue-9 -- Add AutoCR to CI/CD #11

Merged
merged 1 commit into from
Jan 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading