Merge pull request #17 from kaihendry/dependabot/github_actions/actio… #57
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
on: | |
workflow_dispatch: | |
push: | |
branches: [master] | |
permissions: | |
id-token: write | |
contents: read | |
jobs: | |
build-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
check-latest: true | |
go-version: 'stable' | |
- uses: golangci/golangci-lint-action@v4 | |
- name: Test | |
run: go test -v . | |
- uses: aws-actions/setup-sam@v2 | |
with: | |
use-installer: true | |
- uses: aws-actions/configure-aws-credentials@v1 | |
with: | |
role-to-assume: arn:aws:iam::407461997746:role/github-actions-Role-56IHHM969DKJ | |
aws-region: ap-southeast-1 | |
- name: Check for new bus stops | |
run: ./allthebusstops.sh | |
env: | |
ACCOUNTKEY: ${{ secrets.ACCOUNTKEY }} | |
- run: git status | |
- run: make deploy | |
- name: Get the lines of code. | |
id: scc | |
uses: Adapt-API/scc-docker-action@master | |
with: | |
args: ${{ env.workspace }} -i js,go,html,css | |
- name: Echo scc output | |
run: | | |
echo | |
echo -n "${{ steps.scc.outputs.scc }}" |