Skip to content

Merge pull request #1777 from stopfstedt/yaml-linting #981

Merge pull request #1777 from stopfstedt/yaml-linting

Merge pull request #1777 from stopfstedt/yaml-linting #981

Workflow file for this run

name: Deploy Dev Build
on:
push:
branches:
- master
concurrency: deploy-dev
jobs:
test:
name: Run Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: pnpm/action-setup@v4
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: 20
- run: pnpm install
- run: pnpm run test
deploy:
name: Deploy Lambda Function
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: pnpm/action-setup@v4
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: 20
- name: install dependencies
run: pnpm install --prod
- name: Serverless Deploy
run: pnpm run deploy:dev
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
- uses: act10ns/slack@v2
if: failure()
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_ILIOS_DEPLOYMENT_WEBHOOK_URL }}
with:
status: ${{ job.status }}
message: LTI Server deploy failed {{ env.GITHUB_SERVER_URL }}/{{ env.GITHUB_REPOSITORY }}/actions/runs/{{ env.GITHUB_RUN_ID }}