From c60d9b8cac9aa7cb5c1147b2ea803e784bb70a17 Mon Sep 17 00:00:00 2001 From: Souma <101255979+5ouma@users.noreply.github.com> Date: Fri, 22 Nov 2024 21:18:09 +0900 Subject: [PATCH] ci(setup): Use my setup action (#111) Don't write the same thing multiple times. --- .../actions/setup-deno-with-cache/action.yml | 18 ------------------ .github/workflows/ci.yml | 14 +++++++------- 2 files changed, 7 insertions(+), 25 deletions(-) delete mode 100644 .github/actions/setup-deno-with-cache/action.yml diff --git a/.github/actions/setup-deno-with-cache/action.yml b/.github/actions/setup-deno-with-cache/action.yml deleted file mode 100644 index ce26794..0000000 --- a/.github/actions/setup-deno-with-cache/action.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: ๐Ÿฆ• Setup Deno with Cache -description: Install Deno and cache project dependencies - -runs: - using: composite - - steps: - - name: ๐Ÿฆ• Setup Deno - uses: denoland/setup-deno@4606d5cc6fb3f673efd4f594850e3f4b3e9d29cd # v2.0.0 - - - name: ๐Ÿซ™ Cache Deno Dependencies - uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2 - with: - path: | - ~/.deno - ~/.cache/deno - key: ${{ runner.os }}-deno-${{ hashFiles('./deno.lock') }} - restore-keys: ${{ runner.os }}-deno- diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ae3c780..e76408f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,7 +15,7 @@ on: - .github/workflows/ci.yml jobs: - lint: + lint-check: name: ๐Ÿงน Lint Check runs-on: Ubuntu-Latest @@ -24,7 +24,7 @@ jobs: uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: ๐Ÿฆ• Setup Deno with Cache - uses: ./.github/actions/setup-deno-with-cache + uses: 5ouma/utils/setup-deno-with-cache@main - name: ๐Ÿงน Lint Check run: deno lint @@ -32,7 +32,7 @@ jobs: - name: ๐Ÿ“š Lint the JSDoc run: deno doc --lint ./src - format: + format-check: name: ๐Ÿ“ Format Check runs-on: Ubuntu-Latest @@ -41,7 +41,7 @@ jobs: uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: ๐Ÿฆ• Setup Deno with Cache - uses: ./.github/actions/setup-deno-with-cache + uses: 5ouma/utils/setup-deno-with-cache@main - name: ๐Ÿ“ Format Check run: deno fmt --check @@ -55,7 +55,7 @@ jobs: uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: ๐Ÿฆ• Setup Deno with Cache - uses: ./.github/actions/setup-deno-with-cache + uses: 5ouma/utils/setup-deno-with-cache@main - name: ๐Ÿ” Type Check run: deno check --doc ./src @@ -69,7 +69,7 @@ jobs: uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: ๐Ÿฆ• Setup Deno with Cache - uses: ./.github/actions/setup-deno-with-cache + uses: 5ouma/utils/setup-deno-with-cache@main - name: ๐Ÿงช Run Tests run: deno task test:ci @@ -94,7 +94,7 @@ jobs: uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: ๐Ÿฆ• Setup Deno with Cache - uses: ./.github/actions/setup-deno-with-cache + uses: 5ouma/utils/setup-deno-with-cache@main - name: ๐Ÿ“ฆ Dry Run Publish run: deno publish --dry-run