Skip to content

Commit

Permalink
remove provenance example, update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
qianl15 committed Oct 16, 2023
1 parent b08b363 commit a4f6b00
Show file tree
Hide file tree
Showing 10 changed files with 7 additions and 2,768 deletions.
24 changes: 6 additions & 18 deletions .github/workflows/hello-world.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: CI for Hello world demo
name: CI for Hello world (extended) demo

on:
push:
branches: [ "main" ]
paths:
- 'hello-world/**'
- 'hello-world-extended/**'
- '.github/workflows/hello-world.yml'
pull_request:
types:
Expand All @@ -13,7 +13,7 @@ on:
- reopened
- synchronize
paths:
- 'hello-world/**'
- 'hello-world-extended/**'
- '.github/workflows/hello-world.yml'
workflow_dispatch:

Expand All @@ -40,12 +40,6 @@ jobs:
- 5432:5432

steps:
- name: "Setup postgres config"
run: |
docker exec -i ${{ job.services.postgres.id }} apt update
docker exec -i ${{ job.services.postgres.id }} apt install -y postgresql-15-wal2json
docker exec ${{ job.services.postgres.id }} sh -c 'echo "wal_level=logical" >> /var/lib/postgresql/data/postgresql.conf'
docker restart ${{ job.services.postgres.id }}
- name: Checkout demo app
uses: actions/checkout@v3
with:
Expand All @@ -54,18 +48,12 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install psql
run: |
sudo apt-get update
sudo apt-get install -y postgresql-client coreutils
- name: Setup Postgres
run: ./operon-demo-apps/hello-world/init_database.sh
env:
PGPASSWORD: dbos
- name: Compile Hello World
working-directory: operon-demo-apps/hello-world
working-directory: operon-demo-apps/hello-world-extended
run: |
npm install
npx knex migrate:latest
npm run build
env:
PGPASSWORD: dbos
NPM_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
2 changes: 1 addition & 1 deletion hello-world-extended/src/operations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { TransactionContext, OperonTransaction, GetApi, PostApi, CommunicatorCon
import { Knex } from 'knex';
import axios from 'axios';

interface operon_hello {
export interface operon_hello {
name: string;
greet_count: number;
}
Expand Down
33 changes: 0 additions & 33 deletions hello-world-provenance/.eslintrc.cjs

This file was deleted.

32 changes: 0 additions & 32 deletions hello-world-provenance/.gitignore

This file was deleted.

42 changes: 0 additions & 42 deletions hello-world-provenance/README.md

This file was deleted.

10 changes: 0 additions & 10 deletions hello-world-provenance/operon-config.yaml

This file was deleted.

Loading

0 comments on commit a4f6b00

Please sign in to comment.