feat: player id implemented #543
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test-contracts | |
on: | |
pull_request: | |
paths-ignore: | |
- "client/**" | |
- "sdk/**" | |
- "**/manifest.json" | |
- "discord-bot/**" | |
- "config/**" | |
- ".github/**" | |
- "pnpm-lock.yaml" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
setup-environment: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up environment | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y curl | |
test-various: | |
needs: [setup-environment] | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
test: | |
[ | |
combat, | |
buildings, | |
config, | |
hyperstructure, | |
bank, | |
map, | |
name, | |
resources, | |
trade, | |
realm, | |
guild, | |
transport, | |
models, | |
] | |
fail-fast: false | |
steps: | |
- name: Download Dojo release artifact | |
run: | | |
curl -L -o dojo-linux-x86_64.tar.gz https://github.com/dojoengine/dojo/releases/download/v1.0.0-alpha.12/dojo_v1.0.0-alpha.12_linux_amd64.tar.gz | |
tar -xzf dojo-linux-x86_64.tar.gz | |
sudo mv sozo /usr/local/bin/ | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Run Dojo Build | |
run: | | |
cd contracts && sozo build | |
- name: Run Dojo Test for ${{ matrix.test }} | |
run: | | |
cd contracts && sozo test -f ${{ matrix.test }} --print-resource-usage | |
test-scarb-fmt: | |
needs: [setup-environment] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: software-mansion/setup-scarb@v1 | |
with: | |
scarb-version: "2.7.0" | |
- run: cd contracts && scarb fmt --check |