forked from codinget/action-tests
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
447179939a | ||
|
|
6a0725e06e | ||
|
|
22ac1eace8 | ||
|
|
b52139af93 | ||
|
|
b4205cdccb | ||
|
|
983a0157e4 | ||
|
|
e0fe689f75 | ||
|
|
a44ba36fd4 | ||
|
|
e29992d3d3 | ||
|
|
191ded608c | ||
|
|
b04cc2a452 | ||
|
|
3cb316c9f2 | ||
|
|
960e51bed7 | ||
|
|
a314036077 | ||
|
|
73a0ba223e | ||
|
|
3b5a98af91 | ||
|
|
e3cb05c461 | ||
|
|
cfb6627678 | ||
|
|
88202e5d90 | ||
|
|
c405f578cf | ||
|
|
9fa8f11480 | ||
|
|
d82eb837e0 | ||
|
|
baca13d575 | ||
|
|
0d92d66564 | ||
|
|
61b7d451d5 | ||
|
|
f26270e305 |
@@ -0,0 +1,24 @@
|
||||
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/gitea/public/assets/css:/target \
|
||||
-w /target \
|
||||
alpine:3.23 sh -c 'rm theme-doki*.css && tar x'
|
||||
@@ -0,0 +1,25 @@
|
||||
name: Test checkout
|
||||
on: workflow_dispatch
|
||||
|
||||
jobs:
|
||||
self:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- run: ls -lah
|
||||
|
||||
other-in-user:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
with:
|
||||
repository: codinget/totallynotmalware
|
||||
- run: ls -lah
|
||||
|
||||
other-in-other-org:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
with:
|
||||
repository: privileged/action-tests
|
||||
- run: ls -lah
|
||||
@@ -0,0 +1,32 @@
|
||||
name: Test Dispatch
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
restart:
|
||||
description: Restart gitea after updating the theme files
|
||||
required: false
|
||||
type: boolean
|
||||
|
||||
jobs:
|
||||
test-with-tea:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
actions: write
|
||||
steps:
|
||||
- name: Install tea
|
||||
run: curl -sL "https://dl.gitea.com/tea/0.14.1/tea-0.14.1-linux-amd64" -o tea && chmod +x tea
|
||||
- name: Add token
|
||||
run: ./tea login add --url "${{ gitea.server_url }}" --token "${{ gitea.token }}" --name gitea
|
||||
- name: Trigger with tea
|
||||
run: ./tea actions workflows dispatch --repo "${{ gitea.repository }}" --ref main --login "gitea" test-inputs.yaml --input "restart=${{ inputs.restart }}"
|
||||
test-on-another:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
actions: write
|
||||
steps:
|
||||
- name: Install tea
|
||||
run: curl -sL "https://dl.gitea.com/tea/0.14.1/tea-0.14.1-linux-amd64" -o tea && chmod +x tea
|
||||
- name: Add token
|
||||
run: ./tea login add --url "${{ gitea.server_url }}" --token "${{ secrets.deploy_token }}" --name gitea
|
||||
- name: Trigger with tea
|
||||
run: ./tea actions workflows dispatch --repo "privileged/deployments" --ref main --login "gitea" update-doki-theme-gitea.yaml
|
||||
@@ -0,0 +1,8 @@
|
||||
name: Test env
|
||||
on: workflow_dispatch
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- run: env
|
||||
@@ -0,0 +1,14 @@
|
||||
name: Test inputs
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
restart:
|
||||
description: Restart gitea after updating the theme files
|
||||
required: false
|
||||
type: boolean
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- run: echo '${{ inputs.restart }}'
|
||||
Reference in New Issue
Block a user