Compare commits

...

2 commits

Author SHA1 Message Date
Sung
4e1e74bf5e Fix build status in README 2023-02-05 12:32:53 +11:00
Sung
fe50f5444c Run CI 2023-02-05 12:29:44 +11:00
4 changed files with 50 additions and 35 deletions

47
.github/workflows/ci.yml vendored Normal file
View file

@ -0,0 +1,47 @@
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

View file

@ -1,32 +0,0 @@
language: go
dist: xenial
go:
- 1.13
env:
- NODE_VERSION=10.15.0
before_install:
- sudo apt-get update
- sudo apt-get --yes remove postgresql\*
- sudo apt-get install -y postgresql-11 postgresql-client-11
- sudo cp /etc/postgresql/{9.6,11}/main/pg_hba.conf
- sudo sed -i 's/port = 5433/port = 5432/' /etc/postgresql/11/main/postgresql.conf
- sudo service postgresql restart 11
before_script:
- nvm install "$NODE_VERSION"
- nvm use "$NODE_VERSION"
- node --version
- psql -c "CREATE DATABASE dnote_test;" -U postgres
install:
- make install
script:
- make lint
- make test-cli
- make test-api
- make test-web
- make test-jslib

View file

@ -1,11 +1,11 @@
![Dnote](assets/logo.png)
=========================
[![Build Status](https://travis-ci.org/dnote/dnote.svg?branch=master)](https://travis-ci.org/dnote/dnote)
![Build Status](https://github.com/dnote/dnote/actions/workflows/ci.yml/badge.svg)
Dnote is a simple command line notebook for programmers.
It **keeps you focused** by providing a way of effortlessly capturing and retrieving information **without leaving your terminal**. It also offers a seamless **multi-device sync** and a **web interface**.
It **keeps you focused** by providing a way of effortlessly capturing and retrieving information **without leaving your terminal**. It also offers a seamless **multi-device sync**.
![A demo of Dnote command line interface](assets/cli.gif "Dnote command line interface")

View file

@ -4,7 +4,7 @@ DBHost=localhost
DBPort=5432
DBName=dnote_test
DBUser=postgres
DBPassword=
DBPassword=postgres
DBSkipSSL=true
SmtpUsername=mock-SmtpUsername