Skip to content

Add Elastic License 2.0 with commercial exceptions #207

Add Elastic License 2.0 with commercial exceptions

Add Elastic License 2.0 with commercial exceptions #207

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.25"
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Cache Go modules
uses: actions/cache@v4
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Cache Node modules
uses: actions/cache@v4
with:
path: docs-site/node_modules
key: ${{ runner.os }}-node-${{ hashFiles('docs-site/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Bootstrap
run: ./scripts/bootstrap
- name: Run linters
run: ./scripts/lint
test:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:15
env:
POSTGRES_PASSWORD: testpass
POSTGRES_USER: testuser
POSTGRES_DB: testdb
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.25"
- name: Cache Go modules
uses: actions/cache@v4
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Bootstrap
run: ./scripts/bootstrap
- name: Run tests
env:
GOOGLE_CLIENT_ID: test-client-id
GOOGLE_CLIENT_SECRET: test-client-secret
JWT_SECRET: test-jwt-secret-that-is-32-bytes!
DATABASE_URL: postgres://testuser:testpass@localhost:5432/testdb?sslmode=disable
SESSION_TIMEOUT: 5s
SESSION_CLEANUP_INTERVAL: 1s
TEST_CLEANUP_WAIT_TIME: 15s
TEST_TIMER_RESET_WAIT_TIME: 15s
TEST_MULTI_USER_WAIT_TIME: 15s
run: ./scripts/test