-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (33 loc) · 1 KB
/
ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: CI
# Configures this workflow to run every time a change is pushed to the branch called `release`.
on:
pull_request:
# There is a single job in this workflow. It's configured to run on the latest available version of Ubuntu.
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: pip
cache-dependency-path: .pre-commit-config.yaml
- uses: asdf-vm/actions/[email protected]
- uses: pre-commit/[email protected]
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
cache: 'yarn'
- run: yarn install
- run: |
git config --global user.email "[email protected]"
git config --global user.name "Your Name"
- run: yarn test
env:
NODE_OPTIONS: "--experimental-vm-modules"