From f1b2e8e5ae555b3be1a8108320f5c17fc0264064 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michalina=20Ciencia=C5=82a?= Date: Mon, 3 Jan 2022 23:33:40 +0100 Subject: [PATCH 1/2] Add caching of the yarn dependencies We're adding a caching mechanism for yarn dependencies built into the `setup-node` GH action. This should decrease execution time for the step installing the dependencies. --- .github/workflows/format.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 5369f3f..31b662d 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -15,6 +15,7 @@ jobs: - uses: actions/setup-node@v2 with: node-version: "14.x" + cache: "yarn" - name: Install dependencies run: yarn install From 5e5774192f524fa3e63fc28396316ba03e840de3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michalina=20Ciencia=C5=82a?= Date: Tue, 4 Jan 2022 00:19:42 +0100 Subject: [PATCH 2/2] Add `workflow_dispatch` trigger We're adding `workflow_dispatch` trigger. It's not meant to be used on a regular basis, but there may be situations in the future when it will be helpful. --- .github/workflows/format.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 31b662d..cdfdc7e 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -5,6 +5,7 @@ on: branches: - main pull_request: + workflow_dispatch: jobs: code-format: