Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Sep 17, 2022. It is now read-only.

Commit 49fd23e

Browse filesBrowse files
committed
Add github workflows
1 parent ecd12d4 commit 49fd23e
Copy full SHA for 49fd23e

File tree

Expand file treeCollapse file tree

2 files changed

+78
-0
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+78
-0
lines changed

‎.github/workflows/ shipjs-trigger.yml

Copy file name to clipboard
+25Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Ship js trigger
2+
on:
3+
pull_request:
4+
types:
5+
- closed
6+
jobs:
7+
build:
8+
name: Release
9+
runs-on: ubuntu-latest
10+
if: github.event.pull_request.merged == true && startsWith(github.head_ref, 'releases/v')
11+
steps:
12+
- uses: actions/checkout@v2.3.5
13+
with:
14+
fetch-depth: 0
15+
ref: main
16+
- uses: actions/setup-node@v2.4.1
17+
with:
18+
registry-url: "https://registry.npmjs.org"
19+
node-version: '14'
20+
- run: pnpm i
21+
- run: npx shipjs trigger
22+
env:
23+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24+
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
25+
SLACK_INCOMING_HOOK: ${{ secrets.SLACK_INCOMING_HOOK }}

‎.github/workflows/test.yml

Copy file name to clipboard
+53Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Test
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
branches:
8+
- main
9+
env:
10+
CI: true
11+
12+
jobs:
13+
test:
14+
name: "Test on Node.js ${{ matrix.node }} OS: ${{ matrix.os }} Vue: ${{matrix.vue}}"
15+
runs-on: ${{ matrix.os }}
16+
strategy:
17+
matrix:
18+
os: [ubuntu-latest, windows-latest]
19+
node: [16]
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v2.3.5
23+
with:
24+
fetch-depth: 0
25+
- name: Setup Node.js ${{ matrix.node }}
26+
uses: actions/setup-node@v2.4.1
27+
with:
28+
node-version: ${{ matrix.node }}
29+
- name: Install
30+
run: pnpm i
31+
32+
- name: Test
33+
run: pnpm test --coverage
34+
35+
- name: Upload code coverage
36+
uses: codecov/codecov-action@v2
37+
38+
lint:
39+
runs-on: ubuntu-latest
40+
name: "Lint source code"
41+
steps:
42+
- name: Checkout
43+
uses: actions/checkout@v2.3.5
44+
with:
45+
fetch-depth: 0
46+
- name: Setup Node.js
47+
uses: actions/setup-node@v2.4.1
48+
49+
- name: Install
50+
run: pnpm i
51+
52+
- name: Lint
53+
run: pnpm lint

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.