From 860fdf02bf65a0ed26e74dfecbb909d774623e15 Mon Sep 17 00:00:00 2001 From: Maximous Black Date: Fri, 24 Jul 2020 01:13:53 +0530 Subject: [PATCH 1/8] Create deno.yml --- ci/deno.yml | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 ci/deno.yml diff --git a/ci/deno.yml b/ci/deno.yml new file mode 100644 index 0000000..fb00a11 --- /dev/null +++ b/ci/deno.yml @@ -0,0 +1,61 @@ +# This workflow will install Deno and run tests across stable and nightly builds on Windows, Ubuntu and macOS. +# For more information see: https://github.com/denolib/setup-deno + +name: Deno CI + +on: + push: + branches: [$default-branch] + pull_request: + branches: [$default-branch] + +jobs: + stable: + name: Test on Deno Stable + + runs-on: ${{ matrix.os }} + + strategy: + fail-fast: false + matrix: + os: [macOS-latest, windows-latest, ubuntu-latest] + + steps: + - name: Setup repo + uses: actions/checkout@v2 + + - name: Setup Deno + uses: denolib/setup-deno@v2 + with: + deno-version: v1.x + + - name: Cache Deps + run: deno cache deps.ts + + - name: Run Tests + run: deno test -A --unstable + + nightly: + name: Test on Deno Nightly + + runs-on: ${{ matrix.os }} + + strategy: + fail-fast: false + matrix: + os: [macOS-latest, windows-latest, ubuntu-latest] + + steps: + - name: Setup repo + uses: actions/checkout@v2 + + - name: Setup Deno + uses: denolib/setup-deno@v2 + with: + deno-version: nightly + + - name: Cache Deps + run: deno cache deps.ts + + - name: Run tests + run: deno-nightly test -A --unstable From 613f51fa515c7838ff4355eece966e0d938ec088 Mon Sep 17 00:00:00 2001 From: Maximous Black Date: Fri, 24 Jul 2020 01:16:06 +0530 Subject: [PATCH 2/8] Create deno.properties.json --- ci/properties/deno.properties.json | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 ci/properties/deno.properties.json diff --git a/ci/properties/deno.properties.json b/ci/properties/deno.properties.json new file mode 100644 index 0000000..e531d9c --- /dev/null +++ b/ci/properties/deno.properties.json @@ -0,0 +1,6 @@ +{ + "name": "Deno", + "description": "Test you Deno project", + "iconName": "deno", + "categories": ["JavaScript", "TypeScript", "Deno"] +} From 125b38d0419ec233853c8f8d2c5a7d2802640eb6 Mon Sep 17 00:00:00 2001 From: Maximous Black Date: Fri, 24 Jul 2020 01:18:56 +0530 Subject: [PATCH 3/8] Create deno.svg --- icons/deno.svg | 1 + 1 file changed, 1 insertion(+) create mode 100644 icons/deno.svg diff --git a/icons/deno.svg b/icons/deno.svg new file mode 100644 index 0000000..17ffb3e --- /dev/null +++ b/icons/deno.svg @@ -0,0 +1 @@ + From 96bdc687f45f9f875d7e9c721be2952ba7ca0a6e Mon Sep 17 00:00:00 2001 From: Maximous Black Date: Fri, 24 Jul 2020 01:30:01 +0530 Subject: [PATCH 4/8] made it as simple as possible --- ci/deno.yml | 38 ++++---------------------------------- 1 file changed, 4 insertions(+), 34 deletions(-) diff --git a/ci/deno.yml b/ci/deno.yml index fb00a11..c81f3a7 100644 --- a/ci/deno.yml +++ b/ci/deno.yml @@ -1,7 +1,7 @@ # This workflow will install Deno and run tests across stable and nightly builds on Windows, Ubuntu and macOS. # For more information see: https://github.com/denolib/setup-deno -name: Deno CI +name: Deno on: push: @@ -10,15 +10,10 @@ on: branches: [$default-branch] jobs: - stable: - name: Test on Deno Stable + test: + name: Test - runs-on: ${{ matrix.os }} - - strategy: - fail-fast: false - matrix: - os: [macOS-latest, windows-latest, ubuntu-latest] + runs-on: ubuntu-latest steps: - name: Setup repo @@ -34,28 +29,3 @@ jobs: - name: Run Tests run: deno test -A --unstable - - nightly: - name: Test on Deno Nightly - - runs-on: ${{ matrix.os }} - - strategy: - fail-fast: false - matrix: - os: [macOS-latest, windows-latest, ubuntu-latest] - - steps: - - name: Setup repo - uses: actions/checkout@v2 - - - name: Setup Deno - uses: denolib/setup-deno@v2 - with: - deno-version: nightly - - - name: Cache Deps - run: deno cache deps.ts - - - name: Run tests - run: deno-nightly test -A --unstable From e0b4d1e49eef4c740c8f367e20f30cc948c2ae1f Mon Sep 17 00:00:00 2001 From: Maximous Black Date: Fri, 24 Jul 2020 01:31:50 +0530 Subject: [PATCH 5/8] added warning --- ci/deno.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ci/deno.yml b/ci/deno.yml index c81f3a7..ce727a4 100644 --- a/ci/deno.yml +++ b/ci/deno.yml @@ -1,3 +1,8 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + # This workflow will install Deno and run tests across stable and nightly builds on Windows, Ubuntu and macOS. # For more information see: https://github.com/denolib/setup-deno From 5a6d7fe48f857107d55ebf8d26b7d63131e0013e Mon Sep 17 00:00:00 2001 From: Maximous Black Date: Fri, 24 Jul 2020 01:33:30 +0530 Subject: [PATCH 6/8] fix typo --- ci/properties/deno.properties.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/properties/deno.properties.json b/ci/properties/deno.properties.json index e531d9c..8a2c762 100644 --- a/ci/properties/deno.properties.json +++ b/ci/properties/deno.properties.json @@ -1,6 +1,6 @@ { "name": "Deno", - "description": "Test you Deno project", + "description": "Test your Deno project", "iconName": "deno", "categories": ["JavaScript", "TypeScript", "Deno"] } From b2a9ff937c54a278e8b5d9f04994c3802eb55557 Mon Sep 17 00:00:00 2001 From: Maximous Black Date: Sat, 22 Aug 2020 17:26:46 +0530 Subject: [PATCH 7/8] Update Deno Workflow - Use 40 char SHA string for action's version - Add nightly testing - Add cross platform testing --- ci/deno.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/ci/deno.yml b/ci/deno.yml index ce727a4..210e383 100644 --- a/ci/deno.yml +++ b/ci/deno.yml @@ -16,18 +16,21 @@ on: jobs: test: - name: Test + runs-on: ${{ matrix.os }} - runs-on: ubuntu-latest + strategy: + matrix: + deno: ["v1.x", "nightly"] + os: [macOS-latest, windows-latest, ubuntu-latest] steps: - name: Setup repo uses: actions/checkout@v2 - name: Setup Deno - uses: denolib/setup-deno@v2 + uses: denolib/setup-deno@c7d7968ad4a59c159a777f79adddad6872ee8d96 with: - deno-version: v1.x + deno-version: ${{ matrix.deno }} - name: Cache Deps run: deno cache deps.ts From 4c50c2463d32257caaf91ef9626f211bad4af424 Mon Sep 17 00:00:00 2001 From: Maximous Black Date: Tue, 25 Aug 2020 13:24:46 +0530 Subject: [PATCH 8/8] Update deno.yml --- ci/deno.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ci/deno.yml b/ci/deno.yml index 210e383..178b61f 100644 --- a/ci/deno.yml +++ b/ci/deno.yml @@ -16,7 +16,7 @@ on: jobs: test: - runs-on: ${{ matrix.os }} + runs-on: ${{ matrix.os }} # runs a test on Ubuntu, Windows and macOS strategy: matrix: @@ -30,9 +30,9 @@ jobs: - name: Setup Deno uses: denolib/setup-deno@c7d7968ad4a59c159a777f79adddad6872ee8d96 with: - deno-version: ${{ matrix.deno }} + deno-version: ${{ matrix.deno }} # tests across multiple Deno versions - - name: Cache Deps + - name: Cache Dependencies run: deno cache deps.ts - name: Run Tests