Bump node version #99
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: Tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
action: | |
name: Build GitHub action | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: "16" | |
cache: "yarn" | |
- name: Install dependencies | |
run: yarn install | |
- name: Build GitHub action | |
run: yarn build-action | |
build: | |
name: Build lambda function | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: yarn install | |
- name: Build lambda distribution | |
run: yarn dist | |
test: | |
name: Test lambda function | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: yarn install | |
- name: Test | |
run: yarn test |