Skip to content

Commit f290e45

Browse files
authored
Add GitHub CI workflow (#4)
* Remove .travis.yml * Add GitHub CI workflow * README.md: Remove Travis badge
1 parent e7b0046 commit f290e45

File tree

4 files changed

+28
-18
lines changed

4 files changed

+28
-18
lines changed

.github/workflows/ci.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Elixir CI
2+
3+
on: push
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
9+
container:
10+
image: elixir:1.9.1-slim
11+
12+
steps:
13+
- uses: actions/checkout@v1
14+
15+
- name: Install Dependencies
16+
run: bin/setup
17+
env:
18+
CI: 1
19+
MIX_ENV: test
20+
21+
- name: Run Tests
22+
run: bin/test
23+
env:
24+
CI: 1
25+
MIX_ENV: test

.travis.yml

Lines changed: 0 additions & 13 deletions
This file was deleted.

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# plug_content_security_policy
22

3-
[![Build Status](https://secure.travis-ci.org/xtian/plug_content_security_policy.svg?branch=master
4-
"Build Status")](https://travis-ci.org/xtian/plug_content_security_policy)
53
[![Hex](https://img.shields.io/hexpm/v/plug_content_security_policy.svg)](https://hex.pm/packages/plug_content_security_policy)
64

75
This is a [Plug][plug] module for inserting a [Content Security Policy][csp]

bin/setup

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ if [[ -z "$CI" ]]; then
1010
asdf plugin-add elixir || true
1111
asdf install
1212
fi
13-
14-
mix local.hex --force --if-missing
15-
mix local.rebar --force
1613
fi
1714

15+
mix local.hex --force --if-missing
16+
mix local.rebar --force
17+
1818
mix deps.get

0 commit comments

Comments
 (0)