2020-11-23 18:56:46 +00:00
|
|
|
name: b3bp CI
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2023-08-29 10:01:10 +00:00
|
|
|
- main
|
2020-11-23 18:56:46 +00:00
|
|
|
pull_request:
|
|
|
|
types:
|
|
|
|
- opened
|
|
|
|
- synchronize
|
|
|
|
jobs:
|
|
|
|
ci:
|
|
|
|
runs-on: ubuntu-latest
|
2023-08-29 10:01:10 +00:00
|
|
|
steps:
|
2020-11-23 18:56:46 +00:00
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
fetch-depth: 1
|
|
|
|
- uses: actions/setup-node@master
|
|
|
|
with:
|
2023-08-29 10:01:10 +00:00
|
|
|
node-version: 18.x
|
2023-08-29 10:04:33 +00:00
|
|
|
- name: Install
|
|
|
|
run: |
|
|
|
|
corepack yarn
|
2023-08-29 10:25:08 +00:00
|
|
|
- name: Lint
|
|
|
|
run: |
|
|
|
|
corepack yarn lint
|
2020-11-23 18:56:46 +00:00
|
|
|
- name: Test
|
2023-08-29 10:01:10 +00:00
|
|
|
run: |
|
|
|
|
corepack yarn test
|
2020-11-23 18:56:46 +00:00
|
|
|
- name: Website Build
|
2023-08-29 10:01:10 +00:00
|
|
|
if: github.ref == 'refs/heads/main'
|
|
|
|
run: |
|
2023-08-29 10:25:08 +00:00
|
|
|
cp README.md docs/
|