nakarte

Source code of https://map.sikmir.ru (fork)
git clone git://git.sikmir.ru/nakarte
Log | Files | Refs | LICENSE

main.yml (1432B)


      1 name: check
      2 
      3 on:
      4   push:
      5     branches: [master]
      6   pull_request:
      7   schedule:
      8       - cron: '15 3 * * *'
      9 
     10 jobs:
     11   static:
     12     runs-on: ubuntu-latest
     13     steps:
     14       - uses: actions/checkout@v2
     15       - uses: actions/setup-node@v2
     16         with:
     17           version: '16'
     18       - run: cp src/secrets.js.template src/secrets.js
     19       - run: yarnpkg
     20 
     21       - run: npm run lint:code
     22       - run: npm run lint:style
     23       - run: npm run build
     24 
     25   test:
     26     runs-on: ubuntu-latest
     27     strategy:
     28       fail-fast: false
     29       matrix:
     30         include:
     31           - browser: FirefoxHeadless
     32             firefox-version: '52.9.0esr'
     33             needs-xvfb: true
     34           - browser: FirefoxHeadless
     35             firefox-version: 'latest'
     36           - browser: ChromeHeadless
     37     steps:
     38       - uses: actions/checkout@v2
     39       - uses: actions/setup-node@v2
     40         with:
     41           version: '16'
     42       - run: cp src/secrets.js.template src/secrets.js
     43       - run: yarnpkg
     44 
     45       - name: install specific version of Firefox
     46         uses: browser-actions/setup-firefox@latest
     47         with:
     48           firefox-version: ${{matrix.firefox-version}}
     49         if: matrix.firefox-version
     50       - run: npm run test -- --browsers ${{matrix.browser}}
     51         if: ${{! matrix.needs-xvfb}}
     52       - name: run tests with xvfb
     53         uses: GabrielBB/xvfb-action@v1
     54         with:
     55           run: npm run test -- --browsers ${{matrix.browser}}
     56         if: matrix.needs-xvfb