This repository has been archived by the owner on Sep 11, 2024. It is now read-only.
1.46.0 (#296) #891
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test2 | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Build docker image | |
working-directory: ./tests | |
run: | | |
docker build -f Dockerfile -t test-runner .. | |
docker create --name extract test-runner | |
- name: Run tests | |
run: | | |
docker run test-runner | |
- name: Extract artifacts | |
run: | | |
docker cp extract:/src/runtime/deno-lambda-layer.zip deno-lambda-layer.zip | |
docker cp extract:/src/runtime/deno-lambda-example.zip deno-lambda-example.zip | |
test_docker: | |
if: ${{ ! contains(github.head_ref, 'release_') }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Build Docker Image | |
run: | | |
docker build -f docker/base.dockerfile -t denoland/deno-lambda . | |
- name: Test Docker Example | |
run: | | |
cd example-docker-container | |
docker build -t example . | |
docker run -p=9000:8080 example & | |
sleep 5 | |
curl -XPOST "http://localhost:9000/2015-03-31/functions/function/invocations" -d '{"payload":"hello world!"}' |