Skip to content

Commit

Permalink
chore: update worksflows
Browse files Browse the repository at this point in the history
  • Loading branch information
ynwd committed Aug 14, 2024
1 parent b944c98 commit c3e6875
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/bench.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
name: bench
on:
schedule:
- cron: 0 0 * * *
push:
branches:
- main
jobs:
hello_bench:
name: 'Hello, bench!'
name: "Hello, bench!"
runs-on: ubuntu-latest

env:
Expand All @@ -19,7 +17,7 @@ jobs:
id-token: write
contents: write
packages: write

services:
postgres:
image: postgres
Expand All @@ -45,7 +43,7 @@ jobs:
--health-retries 5
ports:
- 6379:6379

mongodb:
image: mongo:4.4.6
env:
Expand All @@ -66,7 +64,7 @@ jobs:
with:
persist-credentials: false
fetch-depth: 0

- name: Start MySQL
run: |
sudo /etc/init.d/mysql start
Expand All @@ -81,7 +79,7 @@ jobs:
with:
crate: oha
version: 1.1.0

- name: Generate internal benchmarks
run: GITHUB_CLIENT_ID=${{ vars.GH_CLIENT_ID }} GITHUB_CLIENT_SECRET=${{ secrets.GH_CLIENT_SECRET }} deno task bench

Expand All @@ -95,10 +93,10 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}

- name: Run Build
run: GITHUB_CLIENT_ID=${{ vars.GH_CLIENT_ID }} GITHUB_CLIENT_SECRET=${{ secrets.GH_CLIENT_SECRET }} deno task build

- name: Deploy to Deno Deploy
uses: denoland/deployctl@v1
with:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: build
on:
push:
branches:
branches:
- main
jobs:
build:
Expand All @@ -19,10 +19,10 @@ jobs:
- uses: denoland/setup-deno@v1
with:
deno-version: vx.x.x

- name: Run tests
run: deno task test

- name: Generate report
run: deno task coverage

Expand All @@ -31,10 +31,10 @@ jobs:
with:
path-to-lcov: ./cov.lcov
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Run Build
run: GITHUB_CLIENT_ID=${{ vars.GH_CLIENT_ID }} GITHUB_CLIENT_SECRET=${{ secrets.GH_CLIENT_SECRET }} deno task build

- name: Deploy to Deno Deploy
uses: denoland/deployctl@v1
with:
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ jobs:

- run: deno lint --unstable http
- run: deno lint --unstable examples

- name: Run tests
run: deno task test

- name: Generate report
run: deno task coverage

Expand All @@ -34,4 +34,3 @@ jobs:
with:
path-to-lcov: ./cov.lcov
github-token: ${{ secrets.GITHUB_TOKEN }}

3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,8 @@
],
"[css]": {
"editor.defaultFormatter": "vscode.css-language-features"
},
"[yaml]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
}

0 comments on commit c3e6875

Please sign in to comment.