-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (49 loc) · 1.24 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
---
name: CI
on:
pull_request:
types:
- opened
- reopened
- synchronize
push:
branches:
- main
jobs:
Test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
repository:
- ua_parser
steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: true
repository: ${{ format('beam-community/{0}', matrix.repository) }}
token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
- name: Sync
uses: stordco/actions-sync@v1
with:
pr-enabled: false
sync-auth: doomspork:${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
sync-repository: github.com/beam-community/common-config.git
sync-tree: ${{ github.event.pull_request.head.sha || 'main' }}
- name: Clean
run: |
rm -rf _build
rm -rf .git
rm -rf deps
rm -rf node_modules
- name: Archive
uses: actions/upload-artifact@v3
with:
name: Test ${{ matrix.repository }}
path: ${{ github.workspace }}/**/*
retention-days: 1