aboutsummaryrefslogtreecommitdiffstats
path: root/library/sodium-plus/.github/workflows/main.yml
blob: 5b5459a31704dc34c4a6b5cdf1611abc4b53b335 (plain) (blame)
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
name: CI

on: [push, pull_request]

jobs:
  build:
    strategy:
      matrix:
        platform: [ubuntu-latest]
        node: [ '12', '10' ]
    name: Node ${{ matrix.node }} (${{ matrix.platform }})
    runs-on: ${{ matrix.platform }}
    steps:
      - uses: actions/checkout@v1
      - uses: actions/setup-node@v1
        with:
          node-version: ${{ matrix.node }}
      - name: install dependencies
        run: npm install
      - name: test without sodium-native
        run: npm test
      - name: install sodium-native
        run: npm install --save sodium-native
      - name: test with sodium-native
        run: npm test

  build_latest:
    name: Node latest
    runs-on: ubuntu-latest
    container: node:latest
    steps:
      - uses: actions/checkout@v1
      - name: install dependencies
        run: npm install
      - name: test without sodium-native
        run: npm test
      - name: install sodium-native
        run: npm install --save sodium-native
      - name: test with sodium-native
        run: npm test