From 847182c831a5aa737e7ab1c61f76ea86469ee6f0 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 | 2 -- .gitea/workflows/test.yaml | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 .gitea/workflows/test.yaml diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index ddae2ef..fe3b323 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -24,7 +24,6 @@ jobs: key: ${{ runner.os }}-haxe path: | $HOME/sdk - ./build - run: echo "${{ secrets.KEY_STORE }}" | base64 --decode > keystore.jks - run: pm build:docker -vv - name: Save haxe cache @@ -36,7 +35,6 @@ jobs: key: ${{ steps.cache-haxe-restore.outputs.cache-primary-key }} path: | $HOME/sdk - ./build - uses: docker/login-action@v4 with: registry: git.shmyga.ru diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml new file mode 100644 index 0000000..fa67958 --- /dev/null +++ b/.gitea/workflows/test.yaml @@ -0,0 +1,33 @@ +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 + - name: Restore haxe cache + id: cache-haxe-restore + uses: actions/cache/restore@v6 + with: + key: ${{ runner.os }}-haxe + path: | + $HOME/sdk + ./build + - run: npx hxt app:flash:setup + - run: pm lint -vv + - name: Save haxe cache + id: cache-haxe-save + #if: always() && steps.cache-haxe-restore.outputs.cache-hit != 'true' + if: always() + uses: actions/cache/save@v6 + with: + key: ${{ steps.cache-haxe-restore.outputs.cache-primary-key }} + path: | + $HOME/sdk + ./build