-
Notifications
You must be signed in to change notification settings - Fork 9
39 lines (39 loc) · 1.46 KB
/
github-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
name: CI
run-name: Checks
on: [push]
jobs:
Linux-sh:
runs-on: ubuntu-latest
steps:
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
- run: echo "🔎 Testing branch ${{ github.ref }}"
- name: Check out repository code
uses: actions/checkout@v3
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner."
- name: Give executable permissions to semver2.sh
run: |
chmod +x ${{ github.workspace }}/semver2.sh
- name: Give executable permissions to test.sh
run: |
chmod +x ${{ github.workspace }}/test.sh
- run: ls -lha ${{ github.workspace }}
- name: test
run: ${{ github.workspace }}/test.sh
shell: sh
Windows-cmd:
runs-on: windows-latest
steps:
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
- run: echo "🔎 Testing branch ${{ github.ref }}"
- name: Check out repository code
uses: actions/checkout@v3
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner."
- name: Give executable permissions to semver2.sh
run: |
chmod +x ${{ github.workspace }}/semver2.sh
- name: Give executable permissions to test.sh
run: |
chmod +x ${{ github.workspace }}/test.sh
- name: test
run: sh ${{ github.workspace }}/test.sh
shell: cmd