name: Test build on: workflow_dispatch jobs: test: runs-on: ubuntu-latest steps: - name: Clone doki-theme-gitea uses: actions/checkout@v6 with: repository: infrastructure/doki-theme-gitea submodules: true - name: Install dependencies run: npm i - name: Generate the themes run: npm run generate - name: Check the output run: [$(ls -1 output/ | wc -l) != 0] - name: Copy the files run: |- (cd output && tar c .) | docker run -i \ -v /srv/gitea/gitea/public/assets/css:/srv/gitea/gitea/public/assets/css \ -w /srv/gitea/gitea/public/assets/css \ alpine:1.23 sh -c 'rm theme-doki*.css && tar x'