mirror of
https://github.com/dnote/dnote
synced 2026-03-14 14:35:50 +01:00
Compare commits
2 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7fca46b597 | ||
|
|
e98403428e |
2 changed files with 1 additions and 49 deletions
49
.github/workflows/ci.yml
vendored
49
.github/workflows/ci.yml
vendored
|
|
@ -1,49 +0,0 @@
|
||||||
name: CI
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
pull_request:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-22.04
|
|
||||||
|
|
||||||
services:
|
|
||||||
postgres:
|
|
||||||
image: postgres:14
|
|
||||||
env:
|
|
||||||
POSTGRES_USER: postgres
|
|
||||||
POSTGRES_PASSWORD: postgres
|
|
||||||
POSTGRES_DB: dnote_test
|
|
||||||
POSTGRES_PORT: 5432
|
|
||||||
# Wait until postgres has started
|
|
||||||
options: >-
|
|
||||||
--health-cmd pg_isready
|
|
||||||
--health-interval 10s
|
|
||||||
--health-timeout 5s
|
|
||||||
--health-retries 5
|
|
||||||
|
|
||||||
# Expose port to the host
|
|
||||||
ports:
|
|
||||||
- 5432:5432
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- uses: actions/setup-go@v3
|
|
||||||
with:
|
|
||||||
go-version: '1.20.0'
|
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
run: |
|
|
||||||
make install
|
|
||||||
|
|
||||||
- name: Test cli
|
|
||||||
run: |
|
|
||||||
make test-cli
|
|
||||||
|
|
||||||
- name: Test app
|
|
||||||
run: |
|
|
||||||
make test-api
|
|
||||||
|
|
@ -87,6 +87,7 @@ check_platform() {
|
||||||
found=1
|
found=1
|
||||||
case "$platform" in
|
case "$platform" in
|
||||||
darwin/amd64) found=0;;
|
darwin/amd64) found=0;;
|
||||||
|
darwin/arm64) found=0;;
|
||||||
linux/amd64) found=0 ;;
|
linux/amd64) found=0 ;;
|
||||||
linux/arm64) found=0 ;;
|
linux/arm64) found=0 ;;
|
||||||
esac
|
esac
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue