-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (30 loc) · 927 Bytes
/
Test.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
on:
workflow_dispatch:
push:
branches-ignore:
- master
pull_request:
name: Test Scripts
jobs:
test:
name: Test Scripts
runs-on: ubuntu-latest
steps:
- uses: docker-practice/actions-setup-docker@master
- uses: actions/checkout@master
- run: git rev-parse --abbrev-ref HEAD
- run: |
set -x
docker version
- run: |
# Export Current Branch Name
export BRANCH="$(git rev-parse --abbrev-ref HEAD)"
# Install pacapt
sudo wget -O /usr/local/bin/pacapt https://github.com/icy/pacapt/raw/ng/pacapt
sudo chmod 755 /usr/local/bin/pacapt
docker run \
-v /usr/local/bin/pacapt:/bin/pacapt \
--rm -i \
${BRANCH}:latest \
sh -c \
"echo y | pacapt -Syyu sudo || true && curl -LsSf https://raw.githubusercontent.com/${{ github.repository }}/${{ github.ref }}/install.sh | sh"