diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index c3faa19..11fa8a5 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -1,10 +1,9 @@ --- name: Bug report about: Create a report to help us improve -title: '' +title: "" labels: bug -assignees: '' - +assignees: "" --- ## Bug description diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md index 3b54884..3234a48 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -1,10 +1,9 @@ --- name: Feature request about: Suggest an idea for this project -title: '' +title: "" labels: enhancement -assignees: '' - +assignees: "" --- ## Motivations diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml index f860d73..7ee7bf0 100644 --- a/.github/workflows/audit.yml +++ b/.github/workflows/audit.yml @@ -3,11 +3,11 @@ name: Security audit on: schedule: # Runs at 00:00 UTC everyday - - cron: '0 0 * * *' + - cron: "0 0 * * *" push: paths: - - '**/Cargo.toml' - - '**/Cargo.lock' + - "**/Cargo.toml" + - "**/Cargo.lock" pull_request: jobs: @@ -20,4 +20,3 @@ jobs: uses: rustsec/audit-check@v1.4.1 with: token: ${{ secrets.GITHUB_TOKEN }} - diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index ad78219..458d5af 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -3,10 +3,9 @@ name: CD # Continuous Deployment on: push: tags: - - '[v]?[0-9]+.[0-9]+.[0-9]+' + - "[v]?[0-9]+.[0-9]+.[0-9]+" jobs: - publish: name: Publishing for ${{ matrix.job.os }} runs-on: ${{ matrix.job.os }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 56067a6..bd90664 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,7 +7,6 @@ on: pull_request: jobs: - test: name: Test Suite runs-on: ubuntu-latest @@ -17,8 +16,24 @@ jobs: - name: Install Rust toolchain uses: dtolnay/rust-toolchain@stable - uses: Swatinem/rust-cache@v2 + - name: Set up cache + uses: actions/cache@v2 + id: cache + with: + path: game-files + key: game-files + - name: Download game files + if: steps.cache.outputs.cache-hit != 'true' + run: | + curl -L -o DARKOMEN.zip -H 'Authorization: token ${{ secrets.DARKOMEN_GAME_FILES_PAT }}' -H 'Accept: application/octet-stream' -L https://api.github.com/repos/mgi388/darkomen-game-files/releases/assets/175295196 + unzip DARKOMEN.zip -d ./ + ls -la ./ + ls -la ./DARKOMEN - name: Run tests - run: cargo test --all-features --workspace + run: | + export DARKOMEN_PATH=$(pwd) + ls -la $DARKOMEN_PATH + cargo test --all-features --workspace rustfmt: name: Rustfmt @@ -61,4 +76,3 @@ jobs: env: RUSTDOCFLAGS: -D warnings run: cargo doc --no-deps --document-private-items --all-features --workspace --examples - diff --git a/.gitignore b/.gitignore index de88b67..ea8c4bf 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1 @@ /target -.cargo-ok -.DS_Store diff --git a/CHANGELOG.md b/CHANGELOG.md index ef88a6b..15a61af 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,5 @@ # Changelog + All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),