Skip to content

Commit 1d50c88

Browse files
committed
Change organization
1 parent 7fd6a6a commit 1d50c88

5 files changed

Lines changed: 19 additions & 31 deletions

File tree

.github/workflows/ci.yml

Lines changed: 11 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111

1212
steps:
1313
- name: Checkout
14-
uses: actions/checkout@v2
14+
uses: actions/checkout@v4
1515

1616
- name: Determine the elixir version
1717
run: echo "ELIXIR_VERSION=$(grep -h elixir .tool-versions | awk '{ print $2 }' | awk -F - '{print $1}')" >> $GITHUB_ENV
@@ -26,7 +26,7 @@ jobs:
2626
otp-version: ${{ env.OTP_VERSION }}
2727

2828
- name: Restore the deps cache
29-
uses: actions/cache@v1
29+
uses: actions/cache@v4
3030
id: deps-cache
3131
with:
3232
path: deps
@@ -35,7 +35,7 @@ jobs:
3535
${{ runner.os }}-${{ env.ELIXIR_VERSION }}-${{ env.OTP_VERSION }}-${{ env.MIX_ENV }}-deps-
3636
3737
- name: Restore the _build cache
38-
uses: actions/cache@v1
38+
uses: actions/cache@v4
3939
id: build-cache
4040
with:
4141
path: _build
@@ -71,10 +71,12 @@ jobs:
7171
MIX_ENV: dev
7272
needs:
7373
- bless
74+
permissions:
75+
contents: write
7476

7577
steps:
7678
- name: Checkout
77-
uses: actions/checkout@v2
79+
uses: actions/checkout@v4
7880

7981
- name: Determine the elixir version
8082
run: echo "ELIXIR_VERSION=$(grep -h elixir .tool-versions | awk '{ print $2 }' | awk -F - '{print $1}')" >> $GITHUB_ENV
@@ -89,7 +91,7 @@ jobs:
8991
otp-version: ${{ env.OTP_VERSION }}
9092

9193
- name: Restore the deps cache
92-
uses: actions/cache@v1
94+
uses: actions/cache@v4
9395
id: deps-cache
9496
with:
9597
path: deps
@@ -98,7 +100,7 @@ jobs:
98100
${{ runner.os }}-${{ env.ELIXIR_VERSION }}-${{ env.OTP_VERSION }}-${{ env.MIX_ENV }}-deps-
99101
100102
- name: Restore the _build cache
101-
uses: actions/cache@v1
103+
uses: actions/cache@v4
102104
id: build-cache
103105
with:
104106
path: _build
@@ -133,28 +135,14 @@ jobs:
133135

134136
- name: Create a GitHub Release
135137
id: create_release
136-
uses: NFIBrokerage/create-release@v2
138+
uses: elgohr/Github-Release-Action@v5
137139
env:
138-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
140+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
139141
with:
140-
tag_name: ${{ env.TAG }}
141-
release_name: Release ${{ env.TAG }}
142-
draft: false
142+
title: Release ${{ env.TAG }}
143143
prerelease: false
144144

145145
- name: Publish library
146146
run: mix hex.publish --yes
147147
env:
148148
HEX_API_KEY: ${{ secrets.HEX_PUBLISH_KEY }}
149-
150-
- name: Notify ops channel of build success
151-
run: >
152-
curl
153-
-X POST
154-
-H 'Content-type:application/json'
155-
-d "{\"text\":\":hexpm: package published for $REPOSITORY $(git tag -ln $TAG)\"}"
156-
$SLACK_WEBHOOK
157-
env:
158-
SLACK_WEBHOOK: ${{ secrets.OPS_CHANNEL_SLACK_WEBHOOK }}
159-
160-
# Generated by Elixir.Gaas.Generators.Simple.Actions.LibraryCi

.tool-versions

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
erlang 25.3.2
2-
elixir 1.17.2-otp-25
1+
elixir 1.17.3-otp-27
2+
erlang 27.1

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Chaps
22

3-
[![CI](https://github.com/NFIBrokerage/chaps/workflows/CI/badge.svg)](https://github.com/NFIBrokerage/chaps/actions)
3+
[![CI](https://github.com/CuatroElixir/chaps/workflows/CI/badge.svg)](https://github.com/CuatroElixir/chaps/actions)
44
[![hex.pm version](https://img.shields.io/hexpm/v/chaps.svg)](https://hex.pm/packages/chaps)
5-
[![hex.pm license](https://img.shields.io/hexpm/l/chaps.svg)](https://github.com/NFIBrokerage/chaps/blob/main/LICENSE)
6-
[![Last Updated](https://img.shields.io/github/last-commit/NFIBrokerage/chaps.svg)](https://github.com/NFIBrokerage/chaps/commits/main)
5+
[![hex.pm license](https://img.shields.io/hexpm/l/chaps.svg)](https://github.com/CuatroElixir/chaps/blob/main/LICENSE)
6+
[![Last Updated](https://img.shields.io/github/last-commit/CuatroElixir/chaps.svg)](https://github.com/CuatroElixir/chaps/commits/main)
77

88
A fork of [ExCoveralls](https://github.com/parroty/excoveralls) focusing on the 100% coverage use-case.
99

mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
defmodule Chaps.Mixfile do
22
use Mix.Project
33

4-
@source_url "https://github.com/NFIBrokerage/chaps"
4+
@source_url "https://github.com/CuatroElixir/chaps"
55
@version_file Path.join(__DIR__, ".version")
66
@external_resource @version_file
77
@version (case Regex.run(~r/^v([\d\.\w-]+)/, File.read!(@version_file),

test/chaps/json_test.exs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ defmodule Chaps.JsonTest do
5050

5151
assert(
5252
File.read!(report) =~
53-
~s({"source_files":[{"coverage":[0,1,null,null],"name":"test/fixtures/test.ex","source":"defmodule Test do\\n def test do\\n end\\nend\\n"}]})
53+
~s({"source_files":[{"name":"test/fixtures/test.ex","source":"defmodule Test do\\n def test do\\n end\\nend\\n","coverage":[0,1,null,null]}]})
5454
)
5555

5656
%{size: size} = File.stat!(report)
@@ -64,7 +64,7 @@ defmodule Chaps.JsonTest do
6464

6565
assert(
6666
File.read!(report) =~
67-
~s({"source_files":[{"coverage":[0,1,null,null],"name":"test/fixtures/test.ex","source":"defmodule Test do\\n def test do\\n end\\nend\\n"}]})
67+
~s({"source_files":[{"name":"test/fixtures/test.ex","source":"defmodule Test do\\n def test do\\n end\\nend\\n","coverage":[0,1,null,null]}]})
6868
)
6969

7070
%{size: size} = File.stat!(report)

0 commit comments

Comments
 (0)