Skip to content

Commit

Permalink
Merge pull request #109 from PeterDaveHello/MigrateToGitHubActions
Browse files Browse the repository at this point in the history
Migrate CI pipeline from Travis CI to GitHub Actions
  • Loading branch information
PeterDaveHello authored Dec 7, 2024
2 parents 7a55156 + ce205fd commit cf6bb07
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 38 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Tests

on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]

jobs:
nslookup-check:
runs-on: ubuntu-latest
continue-on-error: true # Equivalent to allow_failures in Travis
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 5

- name: Configure DNS servers
run: |
echo 'nameserver 8.8.4.4' | sudo tee /etc/resolv.conf
echo 'nameserver 9.9.9.10' | sudo tee -a /etc/resolv.conf
echo 'nameserver 77.88.8.8' | sudo tee -a /etc/resolv.conf
echo 'nameserver 168.95.1.1' | sudo tee -a /etc/resolv.conf
- name: Run nslookup test
run: ./tests/nslookup

duplicate-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 5

- name: Run duplicate test
run: ./tests/duplicate

sorting-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 5

- name: Run sorting tests
run: |
./tests/sort
echo 'example.com' >> list && ! ./tests/sort
38 changes: 0 additions & 38 deletions .travis.yml

This file was deleted.

0 comments on commit cf6bb07

Please sign in to comment.