Skip to content

Commit 918bcbd

Browse files
authored
Merge pull request #120 from devsapp/speedup-ci_with_docker_linux
speedup gitub action ci_with_docker_linux.yaml
2 parents ec9c3be + 8301df1 commit 918bcbd

File tree

1 file changed

+39
-1
lines changed

1 file changed

+39
-1
lines changed

.github/workflows/ci_with_docker_linux.yaml

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ env:
99
REGION: cn-hongkong
1010

1111
jobs:
12-
docker-ci:
12+
docker-ci-standard:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/checkout@v2
@@ -64,6 +64,44 @@ jobs:
6464
- name: test dotnetcore
6565
run: |
6666
cd __tests__/e2e/dotnetcore && sudo ./run && cd -
67+
68+
docker-ci-custom:
69+
runs-on: ubuntu-latest
70+
steps:
71+
- uses: actions/checkout@v2
72+
- uses: docker/setup-buildx-action@v2
73+
- uses: actions/setup-node@v2
74+
with:
75+
node-version: 16
76+
registry-url: https://registry.npmjs.org/
77+
- name: Set up Go
78+
uses: actions/setup-go@v2
79+
with:
80+
go-version: 1.18
81+
- name: Set up Java
82+
uses: actions/setup-java@v1
83+
with:
84+
java-version: 8
85+
- name: Install dependencies
86+
run: |
87+
sudo apt-get update
88+
sudo apt-get install -y wget curl
89+
- name: install s
90+
run: |
91+
sudo npm i @serverless-devs/s -g
92+
- name: config s
93+
run: |
94+
sudo s config add --AccountID ${{secrets.ACCOUNTID}} --AccessKeyID ${{secrets.ACCESSKEYID}} --AccessKeySecret ${{secrets.ACCESSKEYSECRET}} -a quanxi -f
95+
- name: Configure NPM
96+
run: |
97+
npm config set registry https://registry.npmjs.org
98+
npm config set '//packages.aliyun.com/670e108663cd360abfe4be65/npm/npm-registry/:_authToken' ${{secrets.NPM_TOKEN}}
99+
- name: NPM install
100+
run: |
101+
npm install
102+
- name: NPM run build
103+
run: |
104+
npm run build
67105
- name: test apt
68106
run: |
69107
cd __tests__/e2e/apt && sudo ./run && cd -

0 commit comments

Comments
 (0)