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.

Setup new build #1

Merged
merged 10 commits into from
Oct 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions 15 .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
parserOptions: {
project: './tsconfig.json'
},
plugins: ['@typescript-eslint'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'standard-with-typescript'
],
ignorePatterns: ['node_modules/', 'dist/', '*.js']
}
28 changes: 28 additions & 0 deletions 28 .github/workflows/ shipjs-trigger.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Ship js trigger
on:
pull_request:
types:
- closed
jobs:
build:
name: Release
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true && startsWith(github.head_ref, 'releases/v')
steps:
- uses: actions/checkout@v2.3.5
with:
fetch-depth: 0
ref: main
- uses: actions/setup-node@v2.4.1
with:
registry-url: "https://registry.npmjs.org"
node-version: '14'
- uses: pnpm/action-setup@v2.0.1
with:
version: 6.x.x
run_install: true
- run: npx shipjs trigger
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
SLACK_INCOMING_HOOK: ${{ secrets.SLACK_INCOMING_HOOK }}
52 changes: 52 additions & 0 deletions 52 .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Test
on:
push:
branches:
- main
pull_request:
branches:
- main
env:
CI: true

jobs:
test:
name: "Test on Node.js ${{ matrix.node }} OS: ${{ matrix.os }} Vue: ${{matrix.vue}}"
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
node: [16]
steps:
- uses: actions/checkout@v2.3.5
with:
fetch-depth: 0
- uses: actions/setup-node@v2.4.1
with:
node-version: ${{ matrix.node }}
- uses: pnpm/action-setup@v2.0.1
with:
version: 6.x.x
run_install: true

- name: Test
run: pnpm test -- --coverage

- name: Upload code coverage
uses: codecov/codecov-action@v2

lint:
runs-on: ubuntu-latest
name: "Lint source code"
steps:
- uses: actions/checkout@v2.3.5
with:
fetch-depth: 0
- uses: actions/setup-node@v2.4.1
- uses: pnpm/action-setup@v2.0.1
with:
version: 6.x.x
run_install: true

- name: Lint
run: pnpm lint
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.