File: main.yml

package info (click to toggle)
pdsh 2.36-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,436 kB
  • sloc: ansic: 12,474; sh: 3,196; makefile: 402; perl: 163
file content (79 lines) | stat: -rw-r--r-- 2,229 bytes parent folder | download
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
on: [push, pull_request]
name: ci
jobs:
  check-pr:
    name: validate commits
    runs-on: ubuntu-latest
    if: github.event_name == 'pull_request'
    steps:
    - uses: actions/checkout@v4
      with:
        ref: ${{ github.event.pull_request.head.sha }}
        fetch-depth: 0
    - run: git fetch origin master
    - uses: flux-framework/pr-validator@master

  ubuntu:
    name: ubuntu
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v4
      with:
        ref: ${{ github.event.pull_request.head.sha }}
        fetch-depth: 0
    - name: install dependencies
      run: sudo apt install libgenders0-dev libslurm-dev
    - name: fix permissions
      run: chmod -R o-w /home/runner || true
    - name: configure
      run: >
        ./bootstrap &&
        ./configure --with-ssh --with-exec --with-netgroup
        --with-dshgroups --with-genders --with-machines --with-slurm
    - name: make
      run: make -j 2 CFLAGS="-Werror"
    - name: make check
      run: make -j 2 check

  macos:
    name: macos
    runs-on: macos-latest
    steps:
    - uses: actions/checkout@v4
      with:
        ref: ${{ github.event.pull_request.head.sha }}
        fetch-depth: 0
    - name: install dependencies
      run: brew install autoconf automake libtool
    - name: fix permissions
      run: chmod -R o-w /home/runner || true
    - name: configure macos
      run: >
        ./bootstrap &&
        ./configure --with-ssh --with-exec --with-netgroup --with-dshgroups
    - name: make check
      run: make -j 2 check


  coverage:
    name: coverage
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v4
      with:
        ref: ${{ github.event.pull_request.head.sha }}
        fetch-depth: 0
    - name: install dependencies
      run: sudo apt install libgenders0-dev lcov
    - name: fix permissions
      run: chmod -R o-w /home/runner || true
    - name: configure
      run: >
        ./bootstrap &&
        ./configure --with-ssh --with-exec --with-netgroup
        --with-dshgroups --with-genders --with-machines
        --enable-code-coverage
    - name: make check-code-coverage
      run: make check-code-coverage
    - name: coverage report
      uses: codecov/codecov-action@v5