зеркало из https://github.com/electron/trop.git
ci: switch to GHA (#325)
This commit is contained in:
Родитель
af56f3a7af
Коммит
8b5cb2f7eb
|
@ -1,15 +0,0 @@
|
|||
version: 2.1
|
||||
|
||||
orbs:
|
||||
node: electronjs/node@2.3.1
|
||||
|
||||
workflows:
|
||||
build:
|
||||
jobs:
|
||||
- node/test:
|
||||
executor: node/linux
|
||||
node-version: "20.12"
|
||||
use-test-steps: true
|
||||
test-steps:
|
||||
- run: yarn lint
|
||||
- run: yarn test
|
|
@ -0,0 +1,34 @@
|
|||
name: Test
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: '0 19 * * 1-5'
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
test:
|
||||
name: Test
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
|
||||
with:
|
||||
node-version-file: '.nvmrc'
|
||||
cache: 'yarn'
|
||||
- name: Install dependencies
|
||||
run: yarn install --frozen-lockfile
|
||||
- name: Lint
|
||||
run: yarn lint
|
||||
- name: Test
|
||||
run: yarn test
|
2
.nvmrc
2
.nvmrc
|
@ -1 +1 @@
|
|||
16
|
||||
22
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
[![CircleCI](https://dl.circleci.com/status-badge/img/gh/electron/trop/tree/main.svg?style=shield)](https://dl.circleci.com/status-badge/redirect/gh/electron/trop/tree/main)
|
||||
|
||||
# trop
|
||||
|
||||
[![Test](https://github.com/electron/trop/actions/workflows/test.yml/badge.svg)](https://github.com/electron/trop/actions/workflows/test.yml)
|
||||
|
||||
> a GitHub App built with [probot](https://github.com/probot/probot) that automates the process of backporting features and bugfixes.
|
||||
|
||||
```js
|
||||
|
@ -25,7 +25,6 @@ npm install
|
|||
npm start
|
||||
```
|
||||
|
||||
|
||||
## Documentation
|
||||
|
||||
To learn how to use `trop`, see [usage](docs/usage.md).
|
||||
|
|
Загрузка…
Ссылка в новой задаче