Add exchange rates to currencies #5
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: CI | |
on: | |
push: | |
branches: | |
- 'main' | |
jobs: | |
# Test on various OS with default Go version. | |
tests: | |
name: Test on ${{matrix.os}} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
go-version: ['1.21.x'] | |
services: | |
keydb: | |
image: eqalpha/keydb:latest | |
ports: | |
- 6379:6379 | |
options: --health-cmd "redis-cli ping " --health-interval 5s --health-retries 10 | |
volumes: | |
- ${{ github.workspace }}:/workspace | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 1 | |
- name: Print Go version | |
run: go version | |
- name: Get dependencies | |
run: go get -v -t -d ./... | |
- name: Run tests | |
run: go test -v -failfast -tags=test -timeout="3m" -race ./... |