-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (35 loc) · 947 Bytes
/
testing.yml
File metadata and controls
44 lines (35 loc) · 947 Bytes
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
name: Testing Action
on:
workflow_dispatch:
inputs:
a-string:
description: 'insert something to consume'
required: true
default: 'hello world'
repository_dispatch:
types: [test-action]
jobs:
test-action:
name: Test Action
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 7.22.0
- name: Use Node LTS ✨
uses: actions/setup-node@v3
with:
node-version: lts/*
cache: pnpm
- name: Install dependencies 📦️
run: pnpm install --frozen-lockfile
- name: Build 🔨
run: pnpm build
- name: Test Action
id: inputs
uses: ./
- run: echo ${{ steps.inputs.outputs.a-string }}
- run: echo ${{ steps.inputs.outputs.payload }}
- run: echo ${{ steps.inputs.outputs.ref }}