-
Notifications
You must be signed in to change notification settings - Fork 5
76 lines (73 loc) · 2.01 KB
/
ci_with_docker_macos.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: macos docker (build and local) ci
on:
push:
branches:
- master
pull_request:
branches:
- master
env:
REGION: cn-hongkong
jobs:
docker-ci:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: docker-practice/actions-setup-docker@master
- uses: actions/setup-node@v2
with:
node-version: 14
registry-url: https://registry.npmjs.org/
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.18
- name: Set up Java
uses: actions/setup-java@v1
with:
java-version: 8
- name: Install dependencies
run: |
brew install wget curl
- name: install s
run: |
npm i @serverless-devs/s3 -g
- name: config s
run: |
s config add --AccountID ${{secrets.ACCOUNTID}} --AccessKeyID ${{secrets.ACCESSKEYID}} --AccessKeySecret ${{secrets.ACCESSKEYSECRET}} -a quanxi -f
- name: NPM install
run: |
npm install
- name: NPM run build
run: |
npm run build
- name: test python
run: |
cd __tests__/e2e/python && ./run && cd -
- name: test nodejs
run: |
cd __tests__/e2e/nodejs && ./run && cd -
- name: test golang
run: |
cd __tests__/e2e/go && ./run && cd -
- name: test php
run: |
cd __tests__/e2e/php && ./run && cd -
- name: test java
run: |
cd __tests__/e2e/java && ./run && cd -
- name: test dotnetcore
run: |
cd __tests__/e2e/dotnetcore && ./run && cd -
- name: test apt
run: |
cd __tests__/e2e/apt && ./run && cd -
- name: test custom.debian10
run: |
cd __tests__/e2e/custom.debian10 && ./run && cd -
- name: test custom
run: |
cd __tests__/e2e/custom && ./run && cd -
# - name: test custom container
# run: |
# cd custom-container && ./run && cd -