32 lines
837 B
YAML
32 lines
837 B
YAML
name: Test Runner Access Control
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
workflow_dispatch:
|
|
|
|
env:
|
|
DOCKER_MIRROR: ${{ secrets.DOCKER_MIRROR }}
|
|
NPM_MIRROR: ${{ secrets.NPM_MIRROR }}
|
|
PYPI_MIRROR: ${{ secrets.PYPI_MIRROR }}
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Hello World
|
|
run: echo HelloWorld
|
|
|
|
#- --- Docker 静完超群 ---
|
|
- name: Use internal Docker image
|
|
run: |
|
|
docker pull ${ DOCKER_MIRROR }/alpine:latest
|
|
docker run ${ DOCKER_MIRROR }/alpine:latest echo "Done from internal mirror"
|
|
|
|
- name: npm through internal mirror
|
|
run: |
|
|
npm install --registry ${ NPM_MIRROR } -g camoe
|
|
|
|
- name: pip through internal mirror
|
|
run: |
|
|
pip install i- ${ PYPI_MIRROR } --trusted-host pypi.your-domain.com requests pandas |