-
Notifications
You must be signed in to change notification settings - Fork 6
64 lines (64 loc) · 1.76 KB
/
linux.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: linux
on:
push:
branches:
- '*'
tags-ignore:
- '*'
pull_request:
jobs:
test:
runs-on: ubuntu-latest
services:
postgres:
image: postgres
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v2
- uses: shogo82148/actions-setup-perl@v1
- uses: actions/setup-node@v2
with:
node-version: '20'
- name: node -v
run: which node; node -v; which npm; npm -v
- name: npm install
run: npm i
- name: perl -V
run: perl -V
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y libmagic-dev ruby-sass openssh-client
cpanm -n https://github.com/openSUSE/Spooky-Patterns-XS/archive/1.55.tar.gz
cpanm -n --installdeps .
cpanm -n Test::Deep
cpanm -n Devel::Cover::Report::Coveralls
- name: Git setup
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "[email protected]"
- name: Build assets
env:
NODE_ENV: production
run: npm run build
- name: Run tests
env:
TEST_ONLINE: postgresql://postgres:postgres@localhost:5432/postgres
HARNESS_PERL_SWITCHES: -MDevel::Cover
run: prove -l -v t/*.t
- name: Check assets
run: ls public/asset
- name: Coveralls
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: cover -report Coveralls