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

Commit 1c50a00

Browse files
authored
Merge pull request #1 from fluent-vue/setup-build
Setup new build
2 parents 7279914 + 97bf60a commit 1c50a00

10 files changed

+4969
-290
lines changed

.eslintrc.js

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
module.exports = {
2+
root: true,
3+
parser: '@typescript-eslint/parser',
4+
parserOptions: {
5+
project: './tsconfig.json'
6+
},
7+
plugins: ['@typescript-eslint'],
8+
extends: [
9+
'eslint:recommended',
10+
'plugin:@typescript-eslint/eslint-recommended',
11+
'plugin:@typescript-eslint/recommended',
12+
'standard-with-typescript'
13+
],
14+
ignorePatterns: ['node_modules/', 'dist/', '*.js']
15+
}

.github/workflows/ shipjs-trigger.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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/[email protected]
13+
with:
14+
fetch-depth: 0
15+
ref: main
16+
- uses: actions/[email protected]
17+
with:
18+
registry-url: "https://registry.npmjs.org"
19+
node-version: '14'
20+
- uses: pnpm/[email protected]
21+
with:
22+
version: 6.x.x
23+
run_install: true
24+
- run: npx shipjs trigger
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
28+
SLACK_INCOMING_HOOK: ${{ secrets.SLACK_INCOMING_HOOK }}

.github/workflows/test.yml

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
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+
- uses: actions/[email protected]
22+
with:
23+
fetch-depth: 0
24+
- uses: actions/[email protected]
25+
with:
26+
node-version: ${{ matrix.node }}
27+
- uses: pnpm/[email protected]
28+
with:
29+
version: 6.x.x
30+
run_install: true
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+
- uses: actions/[email protected]
43+
with:
44+
fetch-depth: 0
45+
- uses: actions/[email protected]
46+
- uses: pnpm/[email protected]
47+
with:
48+
version: 6.x.x
49+
run_install: true
50+
51+
- name: Lint
52+
run: pnpm lint

0 commit comments

Comments
 (0)