Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit 9d2b88e

Browse files
committed
ci: test new workflow
1 parent 1b2b5a8 commit 9d2b88e

File tree

3 files changed

+66
-1
lines changed

3 files changed

+66
-1
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: "Install"
2+
description: "Sets up Node.js and runs install"
3+
4+
runs:
5+
using: composite
6+
steps:
7+
- uses: pnpm/action-setup@v2
8+
name: Install pnpm
9+
id: pnpm-install
10+
with:
11+
version: 7
12+
run_install: false
13+
14+
- name: Get pnpm store directory
15+
id: pnpm-cache
16+
shell: bash
17+
run: |
18+
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
19+
20+
- uses: actions/cache@v3
21+
name: Setup pnpm cache
22+
with:
23+
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
24+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
25+
restore-keys: |
26+
${{ runner.os }}-pnpm-store-
27+
28+
- name: Setup Node.js
29+
uses: actions/setup-node@v3
30+
with:
31+
node-version-file: ".nvmrc"
32+
registry-url: "https://registry.npmjs.org"
33+
cache: "pnpm"
34+
35+
- name: Setup Git User
36+
shell: bash
37+
run: |
38+
git config --global user.name "$(git --no-pager log --format=format:'%an' -n 1)"
39+
git config --global user.email "$(git --no-pager log --format=format:'%ae' -n 1)"
40+
- name: Install dependencies
41+
shell: bash
42+
run: pnpm install

.github/workflows/pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
pull_request:
88
branches:
99
- main
10-
- develop
10+
# - develop
1111
push:
1212
branches:
1313
- main

.github/workflows/quality.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
- develop
6+
pull_request:
7+
branches:
8+
- main
9+
- develop
10+
11+
jobs:
12+
build:
13+
name: Build
14+
runs-on: self-hosted
15+
steps:
16+
- name: Checkout branch
17+
uses: actions/checkout@v3
18+
19+
- name: Install
20+
uses: ./.github/composite-actions/install
21+
22+
- name: Build packages
23+
run: pnpm build

0 commit comments

Comments
 (0)