diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index 6015e1ed1..22c4125a4 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -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: @@ -19,7 +17,7 @@ jobs: id-token: write contents: write packages: write - + services: postgres: image: postgres @@ -45,7 +43,7 @@ jobs: --health-retries 5 ports: - 6379:6379 - + mongodb: image: mongo:4.4.6 env: @@ -66,7 +64,7 @@ jobs: with: persist-credentials: false fetch-depth: 0 - + - name: Start MySQL run: | sudo /etc/init.d/mysql start @@ -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 @@ -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: diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 56f5450be..d18c18c81 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,7 +1,7 @@ name: build on: push: - branches: + branches: - main jobs: build: @@ -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 @@ -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: diff --git a/.github/workflows/merge.yml b/.github/workflows/merge.yml index 9fcd3f113..4f4aa01cd 100644 --- a/.github/workflows/merge.yml +++ b/.github/workflows/merge.yml @@ -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 @@ -34,4 +34,3 @@ jobs: with: path-to-lcov: ./cov.lcov github-token: ${{ secrets.GITHUB_TOKEN }} - diff --git a/.vscode/settings.json b/.vscode/settings.json index 73366914f..a0e14978f 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -25,5 +25,8 @@ ], "[css]": { "editor.defaultFormatter": "vscode.css-language-features" + }, + "[yaml]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" } }