moq-rs/.github/workflows/web.yml

33 lines
449 B
YAML
Raw Normal View History

2023-05-23 03:22:25 +00:00
name: web
2023-05-23 03:12:14 +00:00
on:
pull_request:
branches: [ "main" ]
jobs:
2023-05-23 03:22:25 +00:00
check:
2023-05-23 03:12:14 +00:00
runs-on: ubuntu-latest
2023-05-23 04:58:05 +00:00
defaults:
run:
working-directory: ./web
2023-05-23 03:12:14 +00:00
steps:
- uses: actions/checkout@v3
2023-05-23 04:43:48 +00:00
2023-05-23 03:22:25 +00:00
- name: install
2023-05-23 03:12:14 +00:00
run: yarn install
2023-05-23 04:43:48 +00:00
2023-05-23 03:22:25 +00:00
- name: cert
2023-05-23 03:19:07 +00:00
working-directory: cert
run: ./generate
2023-05-23 04:43:48 +00:00
2023-05-23 03:22:25 +00:00
- name: build
2023-05-23 03:12:14 +00:00
run: yarn build
2023-05-23 04:43:48 +00:00
- name: fmt
run: yarn prettier --check .
2023-05-23 03:22:25 +00:00
- name: lint
2023-05-23 03:12:14 +00:00
run: yarn lint