Skip to content

Merge pull request #68 from oslokommune/dependabot/npm_and_yarn/ws-7.… #57

Merge pull request #68 from oslokommune/dependabot/npm_and_yarn/ws-7.…

Merge pull request #68 from oslokommune/dependabot/npm_and_yarn/ws-7.… #57

Workflow file for this run

name: Deploy Dev
on:
push:
branches:
- main
paths-ignore:
- '**/*.md'
workflow_dispatch:
jobs:
deploy-dev:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Set up Python 3.11
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
with:
python-version: '3.11'
- name: Install Python dependencies
run: pip install tox
- name: Test with tox
run: tox -e py,flake8,black
- uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
with:
node-version: '18.x'
- name: Install NPM dependencies
run: npm install
- name: Deploy Lambda functions
run: |
AWS_ACCESS_KEY_ID=${{ secrets.AWS_ACCESS_KEY_DEV }} \
AWS_SECRET_ACCESS_KEY=${{ secrets.AWS_SECRET_ACCESS_KEY_DEV }} \
./node_modules/.bin/sls deploy -s dev