-
Notifications
You must be signed in to change notification settings - Fork 19
41 lines (34 loc) · 1.23 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
41
name: "PR Checks"
on: push
jobs:
test:
runs-on: ubuntu-latest
name: Action Test
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v4
with:
node-version: 20
- name: "Install Dependencies"
run: npm install
- name: "Build the package"
run: npm run build
- name: "Check if new build was checked in"
run: |
if [ $(git status --porcelain | wc -l) -gt 0 ] ; then
echo "Found uncommited changes. Did you forget to check in the dist/ folder?"
git status --porcelain
exit 1
fi
- uses: ./
with:
username: ${{ secrets.SAUCE_USERNAME }}
accessKey: ${{ secrets.SAUCE_ACCESS_KEY }}
tunnelName: github-action-tunnel
tunnelPool: true
configFile: ${{ github.workspace }}/sc-configuration/config.yaml
- name: "Run Test"
run: npm run test
env:
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}