Compare commits

..

16 Commits
v0.0.4 ... main

Author SHA1 Message Date
77b8e9e368 output sqlite3
All checks were successful
Release / build (push) Successful in 34s
Integration / Validate (push) Successful in 7s
2024-09-26 03:13:40 +02:00
18eb34c1ea dont commit build
All checks were successful
Integration / Validate (push) Successful in 7s
2024-09-26 02:58:49 +02:00
c683d5d254 add on commit build
Some checks failed
Integration / Validate (push) Successful in 9s
Integration / Build latest (push) Failing after 28s
2024-09-26 02:55:03 +02:00
1d9eb32901 remove comment 2024-09-26 02:52:36 +02:00
f3a6a16a7b use gitea token
All checks were successful
Release / build (push) Successful in 33s
2024-09-26 02:43:09 +02:00
af7ae54128 add release token
Some checks failed
Release / build (push) Failing after 28s
2024-09-26 02:35:51 +02:00
da214bf8f9 add go version
Some checks failed
Release / build (push) Failing after 36s
2024-09-26 02:34:00 +02:00
07aabc16fc use go
Some checks failed
Release / build (push) Failing after 23s
2024-09-26 02:32:41 +02:00
a9228fd09a use gitea releaser
Some checks failed
Integration / validate (push) Successful in 8s
Release / build (push) Failing after 13s
2024-09-26 02:30:41 +02:00
5803981615 use v3
All checks were successful
Integration / validate (push) Successful in 9s
Release / build (push) Successful in 45s
2024-09-26 02:27:02 +02:00
68f40fb0e5 use tag
Some checks failed
Integration / validate (push) Successful in 8s
Release / build (push) Failing after 28s
2024-09-26 02:22:30 +02:00
2ab9e98751 don't specify version
Some checks failed
Integration / validate (push) Successful in 9s
Release / build (push) Failing after 3s
2024-09-26 02:19:26 +02:00
d604f8d727 use double quotes
Some checks failed
Integration / validate (push) Successful in 8s
Release / build (push) Failing after 4s
2024-09-26 02:17:24 +02:00
5d6af2aa21 specify version
All checks were successful
Integration / validate (push) Successful in 8s
2024-09-26 02:15:06 +02:00
d3387cbad1 use gitea action
Some checks failed
Integration / validate (push) Successful in 9s
Release / build (push) Failing after 3s
2024-09-26 02:13:20 +02:00
42513e5f8b fix maybe
Some checks failed
Integration / validate (push) Successful in 8s
Release / build (push) Failing after 24s
2024-09-26 02:04:04 +02:00
3 changed files with 21 additions and 8 deletions

View File

@ -6,6 +6,7 @@ on:
branches: main branches: main
jobs: jobs:
validate: validate:
name: Validate
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions: permissions:
contents: read # Needed to clone the repository contents: read # Needed to clone the repository

View File

@ -11,21 +11,27 @@ jobs:
steps: steps:
- name: Clone - name: Clone
uses: actions/checkout@v3 uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install Deno - name: Install Deno
uses: denoland/setup-deno@v1 uses: denoland/setup-deno@v1
with: with:
deno-version: v1.x deno-version: v1.x
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: '>=1.20.1'
- name: Compile - name: Compile
run: "deno task compile" run: "deno task compile"
- name: Test ls
run: "ls"
- name: Release - name: Release
uses: ncipollo/release-action@v1 id: use-go-action
uses: "https://gitea.com/actions/release-action@main"
with: with:
artifacts: "bunker" files: "bunker"
api_key: '${{secrets.GITEA_TOKEN}}'

12
main.ts
View File

@ -27,14 +27,20 @@ try {
if (!(error instanceof Deno.errors.NotFound)) { if (!(error instanceof Deno.errors.NotFound)) {
throw error; throw error;
} }
console.log("'bunker.db' not found, creating...");
const cmd = new Deno.Command("sqlite3", { const cmd = new Deno.Command("sqlite3", {
args: ["bunker.db", ".read database.sql"], args: ["bunker.db", ".read database.sql"],
stdout: "piped", stdout: "piped",
stderr: "piped", stderr: "piped",
}); });
console.log( const cmdChild = cmd.spawn();
await cmd.output().then((out) => new TextDecoder().decode(out.stdout)), cmdChild.stdout.pipeTo(Deno.stdout.writable);
); cmdChild.stderr.pipeTo(Deno.stderr.writable);
const status = await cmdChild.status;
if (!status.success) {
console.log("failed creating 'bunker.db', exiting...");
Deno.exit(1);
}
} }
class SqliteDb implements Db { class SqliteDb implements Db {