From 568df39fe09a15c60fc6d2f676bab3eb7d987740 Mon Sep 17 00:00:00 2001 From: shmyga Date: Wed, 11 Nov 2026 22:40:56 +0300 Subject: [PATCH] ci(action): add test action --- .gitea/workflows/release.yaml | 6 +++--- .gitea/workflows/test.yaml | 26 ++++++++++++++++++++++++++ config.example.json | 2 -- 3 files changed, 29 insertions(+), 5 deletions(-) create mode 100644 .gitea/workflows/test.yaml diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index ddae2ef..613b1de 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -21,9 +21,9 @@ jobs: id: cache-haxe-restore uses: actions/cache/restore@v6 with: - key: ${{ runner.os }}-haxe + key: ${{ runner.os }}-haxe-${{ hashFiles('**/haxetool.json') }} path: | - $HOME/sdk + ${{ env.HOME }}/sdk ./build - run: echo "${{ secrets.KEY_STORE }}" | base64 --decode > keystore.jks - run: pm build:docker -vv @@ -35,7 +35,7 @@ jobs: with: key: ${{ steps.cache-haxe-restore.outputs.cache-primary-key }} path: | - $HOME/sdk + ${{ env.HOME }}/sdk ./build - uses: docker/login-action@v4 with: diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml new file mode 100644 index 0000000..25bfadf --- /dev/null +++ b/.gitea/workflows/test.yaml @@ -0,0 +1,26 @@ +name: test + +on: push + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v7 + - run: echo '' > requirements.txt + - uses: https://git.shmyga.ru/InfernalGames/project-manager@master + with: + setup-nodejs: true + - uses: actions/cache/restore@v6 + id: cache-haxe + with: + key: ${{ runner.os }}-haxe-${{ hashFiles('**/haxetool.json') }} + path: ${{ env.HOME }}/sdk + - if: steps.cache-haxe.outputs.cache-hit != 'true' + run: npx hxt app:flash:setup + - if: steps.cache-haxe.outputs.cache-hit != 'true' + uses: actions/cache/save@v6 + with: + key: ${{ steps.cache-haxe.outputs.cache-primary-key }} + path: ${{ env.HOME }}/sdk + - run: pm lint -vv diff --git a/config.example.json b/config.example.json index 3e23f03..f283f70 100644 --- a/config.example.json +++ b/config.example.json @@ -1,6 +1,4 @@ { - "SdkDir": "$HOME/sdk", - "Develop": false, "UseRuffle": true, "Key": { "store": "keystore.jks",