generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 4
45 lines (43 loc) · 1.08 KB
/
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
name: CI
on:
push:
branches:
- main
paths-ignore:
- "**.md"
pull_request:
paths-ignore:
- "**.md"
workflow_dispatch:
jobs:
test-action:
strategy:
fail-fast: false
matrix:
os: ["ubuntu-20.04", "ubuntu-22.04"]
runs-on: ${{ matrix.os }}
env:
CODSPEED_SKIP_UPLOAD: true
steps:
- uses: actions/checkout@v3
- name: Check basic action execution
uses: ./
with:
runner-version: 2.0.1-beta.1
run: echo "Working!"
- name: Check action in a custom directory
uses: ./
with:
runner-version: 2.0.1-beta.1
working-directory: examples
# Check that the directory is actually changed
run: if [ $(basename $(pwd)) != "examples" ]; then exit 1; fi
- name: Check action with multiline command
uses: ./
with:
runner-version: 2.0.1-beta.1
# Check that the directory is actually changed
run: |
echo "Working";
echo "with";
echo "multiple lines";