mirror of https://github.com/cbeuw/Cloak
Add release action
This commit is contained in:
parent
005da456c0
commit
8d146582d2
|
|
@ -0,0 +1,20 @@
|
|||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*'
|
||||
|
||||
name: Create Release
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Build
|
||||
run: v=${{ github.ref }} ./release.sh
|
||||
- name: Release
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
files: release/*
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
|
@ -408,7 +408,7 @@ func TestSession_timeoutAfter(t *testing.T) {
|
|||
seshConfigOrdered.Obfuscator = obfuscator
|
||||
seshConfigOrdered.InactivityTimeout = 100 * time.Millisecond
|
||||
sesh := MakeSession(0, seshConfigOrdered)
|
||||
time.Sleep(2 * seshConfigOrdered.InactivityTimeout)
|
||||
time.Sleep(5 * seshConfigOrdered.InactivityTimeout)
|
||||
if !sesh.IsClosed() {
|
||||
t.Error("session should have timed out")
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue