Replace travis with github action
This commit is contained in:
		
							parent
							
								
									e271067771
								
							
						
					
					
						commit
						25560e51db
					
				
					 3 changed files with 13 additions and 24 deletions
				
			
		
							
								
								
									
										12
									
								
								.github/workflows/ci.yml
									
										
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								.github/workflows/ci.yml
									
										
									
									
										vendored
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,12 @@
 | 
			
		|||
on: [push]
 | 
			
		||||
name: build
 | 
			
		||||
jobs:
 | 
			
		||||
  runhaskell:
 | 
			
		||||
    name: Hello World
 | 
			
		||||
    runs-on: ubuntu-latest # or macOS-latest, or windows-latest
 | 
			
		||||
    steps:
 | 
			
		||||
      - uses: actions/checkout@v3
 | 
			
		||||
      - uses: haskell/actions/setup@v2
 | 
			
		||||
        with:
 | 
			
		||||
          enable-stack: true
 | 
			
		||||
      - run: stack build
 | 
			
		||||
							
								
								
									
										23
									
								
								.travis.yml
									
										
									
									
									
								
							
							
						
						
									
										23
									
								
								.travis.yml
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -1,23 +0,0 @@
 | 
			
		|||
sudo: false
 | 
			
		||||
 | 
			
		||||
language: generic
 | 
			
		||||
 | 
			
		||||
cache:
 | 
			
		||||
  directories:
 | 
			
		||||
  - $HOME/.stack
 | 
			
		||||
 | 
			
		||||
addons:
 | 
			
		||||
  apt:
 | 
			
		||||
    packages:
 | 
			
		||||
      - libgmp-dev
 | 
			
		||||
 | 
			
		||||
before_install:
 | 
			
		||||
- mkdir -p ~/.local/bin
 | 
			
		||||
- export PATH=$HOME/.local/bin:$PATH
 | 
			
		||||
- travis_retry curl -L https://get.haskellstack.org/stable/linux-x86_64.tar.gz | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
 | 
			
		||||
 | 
			
		||||
install:
 | 
			
		||||
- stack --no-terminal --install-ghc test --only-dependencies
 | 
			
		||||
 | 
			
		||||
script:
 | 
			
		||||
- stack --no-terminal test --haddock --no-haddock-deps
 | 
			
		||||
| 
						 | 
				
			
			@ -1,4 +1,4 @@
 | 
			
		|||
# tetris [](https://travis-ci.org/samtay/tetris)
 | 
			
		||||
# tetris [](https://github.com/samtay/tetris/actions/workflows/ci.yml)
 | 
			
		||||
 | 
			
		||||
A terminal interface for Tetris
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue