COnfigured workflow file #3
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-auth-API CI | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.16 | |
- name: Install MongoDB | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y mongodb | |
- name: Start MongoDB | |
run: | | |
sudo service mongod start | |
- name: Run tests | |
run: | | |
go test ./... | |