Skip to content

Refactor loadConfig to use printConfig instead of writeConfig #80

Refactor loadConfig to use printConfig instead of writeConfig

Refactor loadConfig to use printConfig instead of writeConfig #80

Workflow file for this run

name: Deploy main branch
on:
push:
branches:
- main
paths-ignore:
- "**/README.md"
permissions:
id-token: write # This is required for requesting the JWT
contents: read # This is required for actions/checkout
jobs:
deploy:
name: deploy
runs-on: ubuntu-latest
env:
nodejs-version: 18.x
AWS_REGION: eu-central-1
steps:
- uses: actions/checkout@v5
- name: Setup - Configure AWS credentials 🔑
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
role-session-name: github-action-serverless
aws-region: ${{ env.AWS_REGION }}
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: 1.20.2
- name: Install go dependencies
run: |
go version
go mod download
- name: Run build
run: make build
- name: Validate
working-directory: functions/redirect
run: |
go vet .
go test -v
- name: Use Node.js ${{ env.nodejs-version }}
uses: actions/setup-node@v4
with:
nodejs-version: ${{ env.nodejs-version }}
- run: yarn install --frozen-lockfile
- name: Install Plugin and Deploy
uses: serverless/[email protected]
with:
args: deploy --verbose