Skip to content

Commit 226c499

Browse files
committed
run lambda for each platform
1 parent 9c61221 commit 226c499

File tree

1 file changed

+31
-31
lines changed

1 file changed

+31
-31
lines changed

.github/workflows/main.yml

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,40 @@ jobs:
5454
path: lambdas
5555
- name: List Lambdas
5656
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"}'
5787
integration-test:
5888
strategy:
5989
matrix:
90+
# docker isn't available on macox-latest or windows-latest
6091
os: [ubuntu-latest]
6192
rust: [stable]
6293
runs-on: ${{ matrix.os }}
@@ -71,37 +102,6 @@ jobs:
71102
- name: Install MUSL tools
72103
if: matrix.os == 'ubuntu-latest'
73104
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
105105
- name: Test
106106
shell: bash
107107
run: npm run test:integration

0 commit comments

Comments
 (0)