54
54
path : lambdas
55
55
- name : List Lambdas
56
56
run : ls -alh lambdas/
57
+ - name : Run macox-latest-lambda
58
+ run : |
59
+ echo "running macox-latest-lambda"
60
+ unzip -o \
61
+ lambda/macox-latest-lambda/test-func.zip \
62
+ -d /tmp/macox-latest-lambda > /dev/null 2>&1 && \
63
+ docker run \
64
+ -i --rm \
65
+ -v /tmp/macox-latest-lambda:/var/task:ro,delegated \
66
+ lambci/lambda:provided 'test-func' '{"some": "event"}'
67
+ - name : Run windows-latest-lambda
68
+ run : |
69
+ echo "running windows-latest-lambda"
70
+ unzip -o \
71
+ lambda/windows-latest-lambda/test-func.zip \
72
+ -d /tmp/windows-latest-lambda > /dev/null 2>&1 && \
73
+ docker run \
74
+ -i --rm \
75
+ -v /tmp/lambda:/var/task:ro,delegated \
76
+ lambci/lambda:provided 'test-func' '{"some": "event"}'
77
+ - name : Run ubuntu-latest-lambda
78
+ run : |
79
+ echo "running ubuntu-latest-lambda"
80
+ unzip -o \
81
+ lambda/macox-latest-lambda/test-func.zip \
82
+ -d /tmp/ubuntu-latest-lambda > /dev/null 2>&1 && \
83
+ docker run \
84
+ -i --rm \
85
+ -v /tmp/ubuntu-latest-lambda:/var/task:ro,delegated \
86
+ lambci/lambda:provided 'test-func' '{"some": "event"}'
57
87
integration-test :
58
88
strategy :
59
89
matrix :
90
+ # docker isn't available on macox-latest or windows-latest
60
91
os : [ubuntu-latest]
61
92
rust : [stable]
62
93
runs-on : ${{ matrix.os }}
@@ -71,37 +102,6 @@ jobs:
71
102
- name : Install MUSL tools
72
103
if : matrix.os == 'ubuntu-latest'
73
104
run : sudo apt-get update && sudo apt-get install -y musl-tools
74
- # - name: Install Docker
75
- # if: matrix.os == 'macOS-latest'
76
- # run: |
77
- # # https://github.community/t/is-it-possible-to-install-and-configure-docker-on-macos-runner/16981/8
78
- # brew install docker docker-machine-driver-xhyve
79
- # sudo chown root:wheel $(brew --prefix)/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve
80
- # sudo chmod u+s $(brew --prefix)/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve
81
- # while ! docker-machine create --driver xhyve default; do
82
- # docker-machine rm -f default
83
- # sleep 1;
84
- # done
85
- # # Export variable (this target)
86
- # eval "$(docker-machine env default)"
87
- # DOCKER_TLS_VERIFY="$( docker-machine env default | grep DOCKER_TLS_VERIFY | sed -e 's/.*="//g' -e 's/"$//g' )"
88
- # DOCKER_HOST="$( docker-machine env default | grep DOCKER_HOST | sed -e 's/.*="//g' -e 's/"$//g' )"
89
- # DOCKER_CERT_PATH="$( docker-machine env default | grep DOCKER_CERT_PATH | sed -e 's/.*="//g' -e 's/"$//g' )"
90
- # DOCKER_MACHINE_NAME="$( docker-machine env default | grep DOCKER_MACHINE_NAME | sed -e 's/.*="//g' -e 's/"$//g' )"
91
- # # Export variable (this other targets)
92
- # # https://help.github.com/en/actions/automating-your-workflow-with-github-actions/development-tools-for-github-actions#set-an-environment-variable-set-env
93
- # echo ::set-env name=DOCKER_TLS_VERIFY::${DOCKER_TLS_VERIFY}
94
- # echo ::set-env name=DOCKER_HOST::${DOCKER_HOST}
95
- # echo ::set-env name=DOCKER_CERT_PATH::${DOCKER_CERT_PATH}
96
- # echo ::set-env name=DOCKER_MACHINE_NAME::${DOCKER_MACHINE_NAME}
97
- # # Show info
98
- # docker-machine ls
99
- # docker-machine env default
100
- # docker version
101
- # experimenting with osx and the vendored rust-lld linker
102
- # - name: Install Cross Compiler
103
- # if: matrix.os == 'macOS-latest'
104
- # run: brew install filosottile/musl-cross/musl-cross
105
105
- name : Test
106
106
shell : bash
107
107
run : npm run test:integration
0 commit comments