Skip to content

update deps

update deps #26

Workflow file for this run

name: Tests
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
-
uses: actions/checkout@v3
-
name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21'
-
name: Build
run: go build -v .
-
name: Get doduda
run: |
curl -s https://api.github.com/repos/dofusdude/doduda/releases/latest \
| grep "browser_download_url.*Linux_x86_64.tar.gz" \
| cut -d : -f 2,3 \
| tr -d \" \
| wget -qi -
tar -xzf doduda_Linux_x86_64.tar.gz
chmod +x doduda
-
name: Get required files for testing
run: |
sudo apt install curl -y
mkdir persistent
curl -sL https://raw.githubusercontent.com/dofusdude/doduda/main/persistent/elements.main.json -o persistent/elements.main.json
curl -sL https://raw.githubusercontent.com/dofusdude/doduda/main/persistent/item_types.main.json -o persistent/item_types.main.json
./doduda --headless --ignore mountsimages --ignore itemsimages
-
name: Test
run: go test -v