-
Notifications
You must be signed in to change notification settings - Fork 10
46 lines (37 loc) · 1.1 KB
/
test-workflow.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
name: Test
on: [push]
jobs:
Test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-13, windows-latest]
fpm-version: ["v0.8.0", "v0.9.0", "latest"]
node-version: ["20.x"]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: MacOS system setup
if: runner.os == 'macOS'
run: |
brew install gcc@10
- name: Install dependencies
run: npm ci
- name: fpm-setup
uses: ./ # Uses action in the root directory
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
fpm-version: ${{ matrix.fpm-version }}
- name: Checkout the fpm repo
if: matrix.fpm-version == 'latest'
uses: actions/checkout@v4
with:
repository: fortran-lang/fpm
- name: Check that all the fpm tests pass
if: matrix.fpm-version == 'latest'
run: fpm test