diff --git a/.gitea/actions/setup/action.yml b/.gitea/actions/setup/action.yml index 80da7ca..3246ccf 100644 --- a/.gitea/actions/setup/action.yml +++ b/.gitea/actions/setup/action.yml @@ -1,18 +1,9 @@ name: Setup -description: Checkout code, restore caches, and install pnpm dependencies -inputs: - token: - required: true +description: Restore caches and install pnpm dependencies (run after checkout) runs: using: composite steps: - - name: ๐Ÿ“‘ Checkout Code - uses: actions/checkout@v4 - with: - fetch-depth: 0 - token: ${{ inputs.token }} - - name: ๐Ÿ’พ Setup pnpm Cache uses: actions/cache@v4 with: diff --git a/.gitea/workflows/benchmark.yaml b/.gitea/workflows/benchmark.yaml index 79afa07..cfa1d7c 100644 --- a/.gitea/workflows/benchmark.yaml +++ b/.gitea/workflows/benchmark.yaml @@ -17,10 +17,14 @@ jobs: container: git.max-richter.dev/max/nodarium-ci:a56e8f445edb6064ae7a7b3b783fb7445f1b4e69 steps: + - name: ๐Ÿ“‘ Checkout Code + uses: actions/checkout@v4 + with: + fetch-depth: 0 + token: ${{ secrets.GITEA_TOKEN }} + - name: ๐Ÿ”ง Setup uses: ./.gitea/actions/setup - with: - token: ${{ secrets.GITEA_TOKEN }} - name: ๐Ÿ› ๏ธ Build Nodes run: pnpm build:nodes diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index 40f2f06..4839a12 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -18,10 +18,14 @@ jobs: container: git.max-richter.dev/max/nodarium-ci:a56e8f445edb6064ae7a7b3b783fb7445f1b4e69 steps: + - name: ๐Ÿ“‘ Checkout Code + uses: actions/checkout@v4 + with: + fetch-depth: 0 + token: ${{ secrets.GITEA_TOKEN }} + - name: ๐Ÿ”ง Setup uses: ./.gitea/actions/setup - with: - token: ${{ secrets.GITEA_TOKEN }} - name: ๐Ÿงน Quality Control run: | @@ -35,10 +39,14 @@ jobs: container: git.max-richter.dev/max/nodarium-ci:a56e8f445edb6064ae7a7b3b783fb7445f1b4e69 steps: + - name: ๐Ÿ“‘ Checkout Code + uses: actions/checkout@v4 + with: + fetch-depth: 0 + token: ${{ secrets.GITEA_TOKEN }} + - name: ๐Ÿ”ง Setup uses: ./.gitea/actions/setup - with: - token: ${{ secrets.GITEA_TOKEN }} - name: ๐Ÿงช Run Tests run: xvfb-run --auto-servernum --server-args="-screen 0 1280x1024x24" pnpm test @@ -49,10 +57,14 @@ jobs: container: git.max-richter.dev/max/nodarium-ci:a56e8f445edb6064ae7a7b3b783fb7445f1b4e69 steps: + - name: ๐Ÿ“‘ Checkout Code + uses: actions/checkout@v4 + with: + fetch-depth: 0 + token: ${{ secrets.GITEA_TOKEN }} + - name: ๐Ÿ”ง Setup uses: ./.gitea/actions/setup - with: - token: ${{ secrets.GITEA_TOKEN }} - name: ๐Ÿ—๏ธ Build Web Assets run: pnpm build