mirror of
https://github.com/documenso/documenso.git
synced 2026-06-22 04:12:06 +10:00
chore: remove github action caches (#2802)
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
name: 'Setup node and cache node_modules'
|
name: 'Setup node'
|
||||||
inputs:
|
inputs:
|
||||||
node_version:
|
node_version:
|
||||||
required: false
|
required: false
|
||||||
@@ -16,25 +16,7 @@ runs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
run: corepack enable npm
|
run: corepack enable npm
|
||||||
|
|
||||||
- name: Cache npm
|
|
||||||
uses: actions/cache@v3
|
|
||||||
with:
|
|
||||||
path: ~/.npm
|
|
||||||
key: npm-${{ hashFiles('package-lock.json') }}
|
|
||||||
restore-keys: npm-
|
|
||||||
|
|
||||||
- name: Cache node_modules
|
|
||||||
uses: actions/cache@v3
|
|
||||||
id: cache-node-modules
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
node_modules
|
|
||||||
packages/*/node_modules
|
|
||||||
apps/*/node_modules
|
|
||||||
key: modules-${{ hashFiles('package-lock.json') }}
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
if: steps.cache-node-modules.outputs.cache-hit != 'true'
|
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
npm ci --no-audit
|
npm ci --no-audit
|
||||||
|
|||||||
@@ -1,19 +1,8 @@
|
|||||||
name: Install playwright binaries
|
name: Install playwright binaries
|
||||||
description: 'Install playwright, cache and restore if necessary'
|
description: 'Install playwright'
|
||||||
runs:
|
runs:
|
||||||
using: 'composite'
|
using: 'composite'
|
||||||
steps:
|
steps:
|
||||||
- name: Cache playwright
|
|
||||||
id: cache-playwright
|
|
||||||
uses: actions/cache@v3
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
~/.cache/ms-playwright
|
|
||||||
${{ github.workspace }}/node_modules/playwright
|
|
||||||
key: playwright-${{ hashFiles('**/package-lock.json') }}
|
|
||||||
restore-keys: playwright-
|
|
||||||
|
|
||||||
- name: Install playwright
|
- name: Install playwright
|
||||||
if: steps.cache-playwright.outputs.cache-hit != 'true'
|
|
||||||
run: npx playwright install --with-deps
|
run: npx playwright install --with-deps
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|||||||
@@ -41,14 +41,6 @@ jobs:
|
|||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
- name: Cache Docker layers
|
|
||||||
uses: actions/cache@v4
|
|
||||||
with:
|
|
||||||
path: /tmp/.buildx-cache
|
|
||||||
key: ${{ runner.os }}-buildx-${{ github.sha }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-buildx-
|
|
||||||
|
|
||||||
- name: Build Docker Image
|
- name: Build Docker Image
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
@@ -56,13 +48,3 @@ jobs:
|
|||||||
context: .
|
context: .
|
||||||
file: ./docker/Dockerfile
|
file: ./docker/Dockerfile
|
||||||
tags: documenso-${{ github.sha }}
|
tags: documenso-${{ github.sha }}
|
||||||
cache-from: type=local,src=/tmp/.buildx-cache
|
|
||||||
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max
|
|
||||||
|
|
||||||
- # Temp fix
|
|
||||||
# https://github.com/docker/build-push-action/issues/252
|
|
||||||
# https://github.com/moby/buildkit/issues/1896
|
|
||||||
name: Move cache
|
|
||||||
run: |
|
|
||||||
rm -rf /tmp/.buildx-cache
|
|
||||||
mv /tmp/.buildx-cache-new /tmp/.buildx-cache
|
|
||||||
|
|||||||
@@ -20,7 +20,6 @@ jobs:
|
|||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: '18'
|
node-version: '18'
|
||||||
cache: npm
|
|
||||||
|
|
||||||
- name: Install Octokit
|
- name: Install Octokit
|
||||||
run: npm install @octokit/rest@18
|
run: npm install @octokit/rest@18
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
name: 'PR Labeler'
|
name: 'PR Labeler'
|
||||||
|
|
||||||
on:
|
on:
|
||||||
- pull_request_target
|
- pull_request
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
||||||
|
|||||||
@@ -20,7 +20,6 @@ jobs:
|
|||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: '18'
|
node-version: '18'
|
||||||
cache: npm
|
|
||||||
|
|
||||||
- name: Install Octokit
|
- name: Install Octokit
|
||||||
run: npm install @octokit/rest@18
|
run: npm install @octokit/rest@18
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
name: 'Validate PR Name'
|
name: 'Validate PR Name'
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request_target:
|
pull_request:
|
||||||
types:
|
types:
|
||||||
- opened
|
- opened
|
||||||
- reopened
|
- reopened
|
||||||
|
|||||||
Reference in New Issue
Block a user