nakarte

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

main.yml (1493B)


      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           node-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: ${{ matrix.os || 'ubuntu-latest' }}
     27     strategy:
     28       fail-fast: false
     29       matrix:
     30         include:
     31           - browser: FirefoxHeadless
     32             firefox-version: '52.9.0esr'
     33             os: ubuntu-20.04
     34             needs-xvfb: true
     35           - browser: FirefoxHeadless
     36             firefox-version: 'latest'
     37           - browser: ChromeHeadless
     38     steps:
     39       - uses: actions/checkout@v2
     40       - uses: actions/setup-node@v2
     41         with:
     42           node-version: '16'
     43       - run: cp src/secrets.js.template src/secrets.js
     44       - run: yarnpkg
     45 
     46       - name: install specific version of Firefox
     47         uses: browser-actions/setup-firefox@latest
     48         with:
     49           firefox-version: ${{matrix.firefox-version}}
     50         if: matrix.firefox-version
     51       - run: npm run test -- --browsers ${{matrix.browser}}
     52         if: ${{! matrix.needs-xvfb}}
     53       - name: run tests with xvfb
     54         uses: GabrielBB/xvfb-action@v1
     55         with:
     56           run: npm run test -- --browsers ${{matrix.browser}}
     57         if: matrix.needs-xvfb