Skip to content

Commit

Permalink
chore(pipelines): pipelines changed
Browse files Browse the repository at this point in the history
  • Loading branch information
Celtian committed Dec 10, 2022
1 parent 61e5a6f commit 74556b5
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 20 deletions.
24 changes: 15 additions & 9 deletions .github/workflows/feature.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,31 @@ on:
- feat/*

jobs:
build:
install-and-test:
name: Install & Test
runs-on: ubuntu-latest
strategy:
matrix:
node: [16]

steps:
- uses: actions/checkout@master
- name: Use Node.js 16.x
uses: actions/setup-node@master
- name: Checkout
uses: actions/checkout@v3

- name: Setup node version
uses: actions/setup-node@v3
with:
node-version: 16.x
node-version: ${{ matrix.node }}
registry-url: 'https://registry.npmjs.org'

- name: Cache node modules
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.OS }}-build-${{ hashFiles('**/yarn.lock') }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.OS }}-build-${{ env.cache-name }}-
${{ runner.OS }}-build-
${{ runner.OS }}-yarn-${{ env.cache-name }}-
${{ runner.OS }}-yarn-
${{ runner.OS }}-
- name: Install dependencies # Install all deps
Expand Down
28 changes: 17 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,31 @@ on:
- 'v*'

jobs:
build:
install-and-build:
name: Install & Build
runs-on: ubuntu-latest
strategy:
matrix:
node: [16]

steps:
- uses: actions/checkout@master
- name: Use Node.js 16.x
uses: actions/setup-node@master
- name: Checkout
uses: actions/checkout@v3

- name: Setup node version
uses: actions/setup-node@v3
with:
node-version: 16.x
node-version: ${{ matrix.node }}
registry-url: 'https://registry.npmjs.org'

- name: Cache node modules
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.OS }}-build-${{ hashFiles('**/yarn.lock') }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.OS }}-build-${{ env.cache-name }}-
${{ runner.OS }}-build-
${{ runner.OS }}-yarn-${{ env.cache-name }}-
${{ runner.OS }}-yarn-
${{ runner.OS }}-
- name: Install dependencies # Install all deps
Expand Down Expand Up @@ -69,9 +75,9 @@ jobs:

- name: Use GPR
if: startsWith(github.ref, 'refs/tags/v') && contains(github.ref, 'beta') == false
uses: actions/setup-node@master
uses: actions/setup-node@v3
with:
node-version: 16
node-version: ${{ matrix.node }}
registry-url: https://npm.pkg.github.com/
scope: '@celtian'

Expand Down

0 comments on commit 74556b5

Please sign in to comment.