[수정] auth controller status 코드 수정 #40
Workflow file for this run
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: go Test check | |
on: | |
pull_request: | |
branches: | |
- dev | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go-version: [ '1.19' ] | |
env: | |
AWS_REGION: ${{ secrets.AWS_REGION }} | |
AWS_SECRET_KEY: ${{ secrets.AWS_SECRET_KEY }} | |
AWS_ACCESS_KEY: ${{ secrets.AWS_ACCESS_KEY }} | |
userID: ${{ secrets.OCI_CLI_USER }} | |
tenancyID: ${{ secrets.OCI_CLI_TENANCY }} | |
fingerprint: ${{ secrets.OCI_CLI_FINGERPRINT }} | |
privateKey: ${{ secrets.OCI_CLI_KEY_CONTENT }} | |
region: ${{ secrets.OCI_CLI_REGION }} | |
compartmentID: ${{ secrets.OCI_COMPARTMENT_OCID }} | |
auth_token: ${{ secrets.OCI_AUTH_TOKEN }} | |
privateKeyPass: ${{ secrets.OCI_PRIVATE_KEY_PASS }} | |
TEST_ACCESS_TOKEN: ${{ secrets.TEST_ACCESS_TOKEN }} | |
TEST_REFRESH_TOKEN: ${{ secrets.TEST_REFRESH_TOKEN }} | |
TEST_EMAIL: ${{ secrets.TEST_EMAIL }} | |
TEST_PASSWORD: ${{ secrets.TEST_PASSWORD }} | |
JWT_REFRESH_KEY_EXPIRE_HOURS_COUNT: ${{ secrets.JWT_REFRESH_KEY_EXPIRE_HOURS_COUNT }} | |
JWT_REFRESH_KEY: ${{ secrets.JWT_REFRESH_KEY }} | |
JWT_SECRET_KEY_EXPIRE_MINUTES_COUNT: ${{ secrets.JWT_SECRET_KEY_EXPIRE_MINUTES_COUNT }} | |
JWT_SECRET_KEY: ${{ secrets.JWT_SECRET_KEY }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Golang with cache | |
uses: magnetikonline/action-golang-cache@v4 | |
with: | |
go-version-file: go.mod | |
- name: Test with Go | |
run: | | |
go test -v -timeout 30s -coverprofile=cover.out -cover ./... | |
go tool cover -func=cover.out | |
# 추후 main 병합시 test 할 부분 | |
# - name: Run Gosec Security Scanner | |
# uses: securego/gosec@master | |
# with: | |
# args: ./... | |
# - name: Check critic | |
# run: | | |
# go install -v github.com/go-critic/go-critic/cmd/gocritic@latest | |
# gocritic check -enableAll ./... | |
# - name: golangci-lint | |
# uses: golangci/golangci-lint-action@v3 | |
# with: | |
# version: v1.53 |