-
-
Notifications
You must be signed in to change notification settings - Fork 35
40 lines (36 loc) · 1.12 KB
/
main.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
name: Actions 😎
on:
pull_request:
push:
jobs:
tests:
name: Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20.x
- run: yarn
- run: yarn lint
- run: yarn test
- run: yarn build || { echo "build command should always succeed" ; exit 61; }
# - run: yarn build --quiet && git diff --quiet dist || { echo "dist should be auto generated" ; exit 62; }
requestManualActivationFile:
name: Request manual activation file 🔑
runs-on: ubuntu-latest
steps:
# Checkout repository (required to test local actions)
- name: Checkout repository
uses: actions/checkout@v4
# Request manual activation file
- name: Request manual activation file
id: getManualLicenseFile
continue-on-error: true
uses: ./
- name: Check for failure
run: |
if [ "${{ steps.getManualLicenseFile.outcome }}" != "failure" ]; then
echo "Expected failure, got ${{ steps.getManualLicenseFile.outcome }}"
exit 1
fi