Skip to content

add list jobs by matching user skills API (#61) #29

add list jobs by matching user skills API (#61)

add list jobs by matching user skills API (#61) #29

Workflow file for this run

name: tests
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
test:
name: Test
runs-on: ubuntu-latest
services:
postgres:
image: postgres:15-alpine
env:
POSTGRES_DB: go_gin_job_search_db
POSTGRES_USER: devuser
POSTGRES_PASSWORD: admin
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v3
- name: Create .env file
run: |
echo "${{ secrets.ENV_FILE }}" > app.env
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ^1.20
id: go
- name: Install golang-migrate
run: |
curl -L https://github.com/golang-migrate/migrate/releases/download/v4.16.1/migrate.linux-amd64.tar.gz | tar xvz
sudo mv migrate /usr/bin/
which migrate
- name: Run migrations
run: make migrate_up
- name: Test
run: make test
- name: Remove .env file
run: rm app.env