50 lines (38 loc) · 1.16 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
42
43
44
45
46
47
48
49
50
# Test 2024-04-08 at 22:49:36
name: Test
on:
push
jobs:
test:
permissions: write-all
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: 'main'
- uses: actions/checkout@v3
with:
repository: philiprbrenan/DataTableText
path: dtt
- name: Cpan
run: sudo cpan install -T Data::Dump Digest::SHA1
- name: Test Perl implemented integrated circuits
run:
perl -Idtt/lib lib/GitHub/Crud.pm
- name: Install Tree
run:
sudo apt install tree
- name: Tree
run:
tree
- name: Upload test files
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
perl -Idtt/lib -MData::Table::Text -e"Data::Table::Text::owf('test/zzz.txt', 'AAAA')"
perl -Idtt/lib -Ilib -MGitHub::Crud -e"&GitHub::Crud::writeFolderUsingSavedToken(@ARGV)" -- philiprbrenan GitHubCrud test/ test/
- name: List repo
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
perl -Idtt/lib -Ilib -MGitHub::Crud -e"say STDERR &GitHub::Crud::listRepositoryUsingSavedToken(@ARGV)" -- philiprbrenan GitHubCrud