Skip to content
Snippets Groups Projects
Commit 883df587 authored by Tom French's avatar Tom French Committed by James Long
Browse files

ci: turn boilerplate into composite action

parent 6b06105f
No related branches found
No related tags found
No related merge requests found
name: Setup
runs:
using: composite
steps:
- name: Install node
uses: actions/setup-node@v1
with:
node-version: 16
- name: Cache
uses: actions/cache@v2
id: cache
with:
path: '**/node_modules'
key: yarn-v1-${{ hashFiles('**/yarn.lock') }}
- name: Install
run: yarn --immutable
shell: bash
if: steps.cache.outputs.cache-hit != 'true'
...@@ -19,19 +19,8 @@ jobs: ...@@ -19,19 +19,8 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Install node - name: Set up environment
uses: actions/setup-node@v1 uses: ./.github/actions/setup
with:
node-version: 16
- name: Cache
uses: actions/cache@v2
id: cache
with:
path: '**/node_modules'
key: yarn-v1-${{ hashFiles('**/yarn.lock') }}
- name: Install
run: yarn --immutable
if: steps.cache.outputs.cache-hit != 'true'
- name: Build API - name: Build API
run: cd packages/loot-core && yarn build:api run: cd packages/loot-core && yarn build:api
...@@ -39,19 +28,8 @@ jobs: ...@@ -39,19 +28,8 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Install node - name: Set up environment
uses: actions/setup-node@v1 uses: ./.github/actions/setup
with:
node-version: 16
- name: Cache
uses: actions/cache@v2
id: cache
with:
path: '**/node_modules'
key: yarn-v1-${{ hashFiles('**/yarn.lock') }}
- name: Install
run: yarn --immutable
if: steps.cache.outputs.cache-hit != 'true'
- name: Build Web - name: Build Web
run: ./bin/package-browser run: ./bin/package-browser
...@@ -67,18 +45,7 @@ jobs: ...@@ -67,18 +45,7 @@ jobs:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Install node - name: Set up environment
uses: actions/setup-node@v1 uses: ./.github/actions/setup
with:
node-version: 16
- name: Cache
uses: actions/cache@v2
id: cache
with:
path: '**/node_modules'
key: yarn-v1-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
- name: Install
run: yarn --immutable
if: steps.cache.outputs.cache-hit != 'true'
- name: Build Electron - name: Build Electron
run: ./bin/package run: ./bin/package
...@@ -12,18 +12,7 @@ jobs: ...@@ -12,18 +12,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Install node - name: Set up environment
uses: actions/setup-node@v1 uses: ./.github/actions/setup
with:
node-version: 16
- name: Cache
uses: actions/cache@v2
id: cache
with:
path: '**/node_modules'
key: yarn-v1-${{ hashFiles('**/yarn.lock') }}
- name: Install
run: yarn --immutable
if: steps.cache.outputs.cache-hit != 'true'
- name: Lint - name: Lint
run: yarn lint run: yarn lint
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment