-
Notifications
You must be signed in to change notification settings - Fork 1
59 lines (48 loc) · 1.48 KB
/
plasttic-ci.yml
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Plasttic CI
# Controls when the workflow will run
on:
# Triggers the workflow defined events for the master branch
push:
branches:
- 'develop'
- '!renovate/**'
- '!dependabot/**'
pull_request: # pull_request/push/
branches:
- '**'
- '!renovate/**'
- '!dependabot/**'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Permissions (read/write/none) define what resources the GitHub App can access via the API
permissions:
pull-requests: write
contents: write
jobs:
# This workflow contains a single job called "plasttic_ci"
plasttic_ci:
permissions:
# For stefanzweifel/git-auto-commit-action
# Give the default GITHUB_TOKEN write permission to commit and push the
# added or changed files to the repository.
contents: write
runs-on: ubuntu-latest
if: ${{ !contains(github.head_ref, 'renovate/') && !contains(github.head_ref, 'dependabot/') }}
steps:
- uses: actions/setup-node@v4
with:
node-version: 20
# Checks-out your repository under $GITHUB_WORKSPACE
- uses: actions/checkout@v4
# Provides functionality for GitHub Actions
- name: ci
uses: pnpm/action-setup@v4
with:
version: 8.x
# Installs dependencies
- run: pnpm install
# Run CI scripts
- run: pnpm lint:all
- run: pnpm test:jest:ci
- run: pnpm test:play:ci
- run: pnpm package:commit