forked from codinget/action-tests
Compare commits
26 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 |
@@ -1,25 +0,0 @@
|
|||||||
name: Test alpine (privileged)
|
|
||||||
on: workflow_dispatch
|
|
||||||
|
|
||||||
defaults:
|
|
||||||
run:
|
|
||||||
shell: sh
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
test:
|
|
||||||
runs-on: privileged-alpine-latest
|
|
||||||
steps:
|
|
||||||
- name: List available binaries
|
|
||||||
run: ls -lah /bin /sbin /usr/bin /usr/sbin /usr/local/bin
|
|
||||||
- name: List available sockets
|
|
||||||
run: ls -lah /var/run /run
|
|
||||||
|
|
||||||
try-docker-with-install:
|
|
||||||
runs-on: privileged-alpine-latest
|
|
||||||
steps:
|
|
||||||
- name: Install Docker
|
|
||||||
run: apk add --no-cache docker
|
|
||||||
- name: Try listing containers
|
|
||||||
run: docker ps
|
|
||||||
- name: Try running something
|
|
||||||
run: docker run -i --rm alpine:latest echo running inside alpine
|
|
||||||
@@ -3,7 +3,7 @@ on: workflow_dispatch
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: privileged-ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Clone doki-theme-gitea
|
- name: Clone doki-theme-gitea
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v6
|
||||||
|
|||||||
@@ -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
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
name: Test docker state (privileged)
|
|
||||||
on: workflow_dispatch
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
test0:
|
|
||||||
runs-on: privileged-ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- run: docker ps
|
|
||||||
test1:
|
|
||||||
runs-on: privileged-ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- run: docker ps
|
|
||||||
test2:
|
|
||||||
runs-on: privileged-ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- run: docker ps
|
|
||||||
test3:
|
|
||||||
runs-on: privileged-ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- run: docker ps
|
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
name: Test docker run (privileged)
|
|
||||||
on: workflow_dispatch
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
run0:
|
|
||||||
runs-on: privileged-ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- run: docker run -i --rm alpine:latest echo running inside alpine
|
|
||||||
- run: docker ps
|
|
||||||
run1:
|
|
||||||
runs-on: privileged-ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- run: docker run -i --rm alpine:latest echo running inside alpine
|
|
||||||
- run: docker ps
|
|
||||||
run2:
|
|
||||||
runs-on: privileged-ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- run: docker run -i --rm alpine:latest echo running inside alpine
|
|
||||||
- run: docker ps
|
|
||||||
run3:
|
|
||||||
runs-on: privileged-ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- run: docker run -i --rm alpine:latest echo running inside alpine
|
|
||||||
- run: docker ps
|
|
||||||
@@ -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