name: Run tests

on: [push, pull_request]

env:
  PACKAGE: SublimeLinter
  SUBLIME_TEXT_VERSION: 3
  UNITTESTING_TAG: master

jobs:
  linux:
    runs-on: ubuntu-20.04
    container: sublimetext/unittesting
    env:
      TRAVIS_OS_NAME: linux
    steps:
      - uses: actions/checkout@v1
      - run: sh -e /etc/init.d/xvfb start
      - run: curl -OL https://raw.githubusercontent.com/SublimeText/UnitTesting/master/sbin/github.sh
      - run: |
          PATH="$HOME/.local/bin:$PATH"
          sh github.sh bootstrap
          sh github.sh install_package_control
          sh github.sh run_tests --coverage
          sh github.sh run_syntax_tests --coverage
      - run: |
          apt-get update
          apt-get install python3-pip -y
          pip3 install coverage==4.5.4 codecov==2.0.15
          codecov
        env:
          CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}}

name: Run tests

on: [push, pull_request]

env:
  PACKAGE: SublimeLinter
  SUBLIME_TEXT_VERSION: 3
  UNITTESTING_TAG: master

jobs:
  linux:
    runs-on: ubuntu-20.04
    container:
      image: sublimetext/unittesting
      options: --cap-add=NET_ADMIN
    env:
      TRAVIS_OS_NAME: linux
    steps:
      - uses: actions/checkout@v1
      - run: sh -e /etc/init.d/xvfb start
      - run: curl -OL https://raw.githubusercontent.com/SublimeText/UnitTesting/master/sbin/github.sh
      - run: |
          PATH="$HOME/.local/bin:$PATH"
          sh github.sh bootstrap
          sh github.sh install_package_control
          sh github.sh run_tests --coverage
          sh github.sh run_syntax_tests --coverage
      - run: |
          apt-get update
          apt-get install python3-pip -y
          pip3 install coverage==4.5.4 codecov==2.0.15
          codecov
        env:
          CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}}

Add `NET_ADMIN` permission to the container
Add `NET_ADMIN` permission to the container
