diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..cfdfdbc0 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,42 @@ +name: ci + +on: push + +jobs: + build: + runs-on: ubuntu-latest + services: + postgres: + image: postgres + env: + POSTGRES_USER: postgres + POSTGRES_PASSWORD: postgres + options: >- + --health-cmd pg_isready + --health-interval 10s + --health-timeout 5s + --health-retries 5 + ports: + - 5432:5432 + strategy: + matrix: + ATOM_CHANNEL: ['stable','beta','dev'] + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Setup node + uses: actions/setup-node@v2 + with: + node-version: '12' + - name: Create DB + run: | + sudo service postgresql start + sudo su postgres -c 'createuser -P --superuser runner' + createdb teletype-test + - name: Build Atom + env: + TRAVIS_OS_NAME: 'linux' + run: | + curl -s -O https://raw.githubusercontent.com/atom/ci/master/build-package.sh + chmod u+x build-package.sh + ./build-package.sh diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 37bddc4d..00000000 --- a/.travis.yml +++ /dev/null @@ -1,41 +0,0 @@ -language: node_js -node_js: '7' -sudo: false -os: linux -dist: xenial - -env: - matrix: - - ATOM_CHANNEL=stable - - ATOM_CHANNEL=beta - - ATOM_CHANNEL=dev - -notifications: - email: - on_success: never - on_failure: change - slack: - on_success: change - rooms: - - secure: om1VFZYOtLRBOHh3+UDms24wIoRsBu73jMrvNoI2/ThElkihHnD6LbdI1qkPEOkufgMlSjTzQml0VqJgN4gACHfB3Y/cx2k0ThUs7H8Zjv7h90xeegMrj5yA+m2ahqln6rZxtSfog/3owYi9m75iZlXKbl72oXBhCrQMcZ4/BIktdLhR8loEZrYoFgxTOxt6kQwHu67WGmtaRdZcp11ve8ToWqp/Wm1IWGRjeNe5C3dHevS4xsUTRK+hoIov1/nwYysQ8RgmxgJGwzwtCjNkwyqwWku9M0ACVqdqXlFYmcNNWWj2e9buVP9mkX9KHVhPaA72CtgPgO1cvV6HFeA4npn/UKHi+FsMfeGBUkUYP+sQ/CauiSq0LW2zoQIlzsFr5GNI5l2kMhQ9cKoA0CMPwfAjK2rRLLx9c61vNjFqVJtL3KiaYsgPnss8CWprvPgCUjWwbPknjY899EVxhP0bcSt1Nyh0XkzFSCFTWGMWwz/u31w3CVOWE0ez1OdjW4is7EmKhH08Zkt46e/Rr5qZFobc9RM1JYhW67rFPvged4eCz0opxrjci2RcYMh/vV+JJF3NYcpxkEI3dRLB1xpQDL0PtEsuvTSIjCRZYcc4RYb+4NDp7vIgMf20Gt+kTwYs30KyCVMTNmWa7x04pClbo/0BN9Q58ZJT8PsCb62W/N4= - -install: - - sudo apt -y install libgconf2-4 # TODO: Remove once Atom 1.39 is stable - - sudo apt-get --only-upgrade install libnss3 - -addons: - apt: - packages: - - libsecret-1-dev - postgresql: '9.6' - -before_script: - - createdb teletype-test - -script: - - curl -s -O https://raw.githubusercontent.com/atom/ci/master/build-package.sh - - chmod u+x build-package.sh - - ./build-package.sh - -git: - depth: 10