generated from threeal/project-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (33 loc) · 868 Bytes
/
test.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
name: Test
on:
workflow_dispatch:
pull_request:
push:
branches: [main]
jobs:
test-action:
name: Test Action
runs-on: ${{ matrix.os }}-latest
strategy:
fail-fast: false
matrix:
os: [windows, ubuntu, macos]
steps:
- name: Checkout
uses: actions/checkout@v4.1.7
with:
path: mkdir-action
sparse-checkout: action.yml
sparse-checkout-cone-mode: false
# Modify the following steps for testing your composite action.
# Learn more: https://docs.github.com/en/actions/automating-builds-and-tests
- name: Directory Should Not Exist
shell: bash
run: "! test -d dir"
- name: Create Directory
uses: ./mkdir-action
with:
name: dir
- name: Directory Should Exist
shell: bash
run: test -d dir