Skip to content

Commit

Permalink
updated ci scripts according to deno/std
Browse files Browse the repository at this point in the history
  • Loading branch information
halvardssm committed Oct 14, 2024
1 parent 445d2a9 commit a578605
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 56 deletions.
24 changes: 6 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
fail-fast: false
matrix:
deno:
- v1.x
- v2.x
- canary
os:
- ubuntu-latest
Expand All @@ -29,19 +29,13 @@ jobs:
uses: actions/checkout@v4

- name: Set up Deno
uses: denoland/setup-deno@v1
uses: denoland/setup-deno@v2
with:
deno-version: ${{ matrix.deno }}

- name: Run tests
run: deno task test

- name: Run tests (simulate Deno 2)
if: matrix.deno == 'canary'
run: deno task test
env:
DENO_FUTURE: 1

- name: Generate lcov
run: deno task cov:gen

Expand All @@ -53,30 +47,24 @@ jobs:
name: ${{ matrix.os }}-${{ matrix.deno }}

check:
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
timeout-minutes: 5
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- windows-latest
steps:
- name: Clone repository
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Set up Deno
uses: denoland/setup-deno@v1
uses: denoland/setup-deno@v2
with:
deno-version: canary

- name: Format & Lint
run: deno task check

- name: Build
run: deno task build:check
run: deno task build:wasm:check

publish-dry-run:
runs-on: ubuntu-latest
Expand All @@ -90,7 +78,7 @@ jobs:
uses: actions/checkout@v4

- name: Set up Deno
uses: denoland/setup-deno@v1
uses: denoland/setup-deno@v2
with:
deno-version: canary

Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/version_bump.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: version_bump

permissions:
contents: write
pull-requests: write

on: workflow_dispatch

jobs:
build:
name: version bump
runs-on: ubuntu-latest
timeout-minutes: 5

steps:
- name: Clone repository
uses: actions/checkout@v4

- name: Set up Deno
uses: denoland/setup-deno@v2
with:
deno-version: canary

- name: Run version bump
run: |
git fetch --unshallow origin
deno run -A jsr:@deno/bump-workspaces@^0.1/cli
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GIT_USER_NAME: ${{ github.actor }}
GIT_USER_EMAIL: ${{ github.actor}}@users.noreply.github.com
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: publish
name: workspace publish

on:
release:
types: [published]
workflow_dispatch:

jobs:
publish:
Expand All @@ -18,15 +19,15 @@ jobs:
uses: actions/checkout@v4

- name: Set up Deno
uses: denoland/setup-deno@v1
uses: denoland/setup-deno@v2
with:
deno-version: canary

- name: Format & Lint
run: deno task check

- name: Build
run: deno task build:check
run: deno task build:wasm:check

- name: Test
run: deno task test
Expand Down
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.DS_Store
.idea
.vscode/settings.json
.vscode/*
!.vscode/settings.json
.fleet
.vim
**/cov/
Expand All @@ -9,4 +10,4 @@ html_cov/
cov.lcov
coverage/
docs/
crypto/hash/_wasm/target
crypto/hash/_wasm/target
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"deno.enable": true,
"deno.unstable": true,
"editor.defaultFormatter": "denoland.vscode-deno"
}
33 changes: 0 additions & 33 deletions _tools/bump_version.ts

This file was deleted.

0 comments on commit a578605

Please sign in to comment.